Quantcast
Channel: Go parse JSON array of array - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Ainar-G for Go parse JSON array of array

You have a very unfortunate JSON schema which treats arrays as objects. The best you can do in this situation is something like this:type Body struct { DescriptionMap []Description...

View Article



Go parse JSON array of array

I have data like this"descriptionMap": [[[1,2], "a"], [[3,4], "b"]]and I was trying to decode it with DescriptionMap []struct { OpcodeTableIdPair []int OpcodeDescription string }...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images