On Tue, 14 Aug 2018, at 12:44 PM, nicolas_boiteux via golang-nuts wrote:> the raw of response.body is this > > > { "args": {}, "data": > "{\"firstname\":\"Nic\",\"lastname\":\"Raboy\"}", "files": {}, > "form": {}, "headers": { "Accept-Encoding": "gzip", > "Connection": "close", "Content-Length": "38", "Content-Type": > "application/json", "Host": "httpbin.org", "User-Agent": "Go-http- > client/1.1" }, "json": {> > "firstname": "Nic", > "lastname": "Raboy" > > }, "origin": "i remove my ip :)", "url": " > https://httpbin.org/post" }> > > for origin with or without the tag it works
That looks like the output of httpbin.org which is a testing service. Is that what you are trying to parse or do you have a real service that is returning some JSON? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.