N
N
NubasLol2019-06-24 13:44:13
go
NubasLol, 2019-06-24 13:44:13

How to parse the http request body into a map?

The task is to sort out separately all the values ​​of the request, the type of which is not known. Well, I think you can somehow parse it in a map, and then sort it out?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2019-06-24
@NubasLol

You can parse into the interface.
Generic JSON with interface{}
https://blog.golang.org/json-and-go

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question