Closed liboshi closed 7 years ago
Hi
I have json data like this: { "samekey": "value1", "samekey": "value2", "samekey": "value3" }
{ "samekey": "value1", "samekey": "value2", "samekey": "value3" }
How to get the third one? I mean that which built-in function should I use.
Thanks in advance.
You will need to use encoding/json.Decoder.Token() to accomplish that
https://play.golang.org/p/DuLOeCGSWX
Hi
I have json data like this:
{ "samekey": "value1", "samekey": "value2", "samekey": "value3" }
How to get the third one? I mean that which built-in function should I use.
Thanks in advance.