How do you unmarshal a JSON into a slice of slices of ints? I keep on getting a blank struct: https://play.golang.org/p/Hgnh5C9FN_
Also is it possible to unmarshal something like [[1 2][3 4]] without a key e.g. {"key":[[1 2][3 4]]}?
How do you unmarshal a JSON into a slice of slices of ints? I keep on getting a blank struct: https://play.golang.org/p/Hgnh5C9FN_
Also is it possible to unmarshal something like [[1 2][3 4]] without a key e.g. {"key":[[1 2][3 4]]}?
It seems there is a three issues in your provided code snippet.
invalid character '[' after array element {[]}
I have updated your code here https://play.golang.org/p/zX7KEPKB8H
Output {[[1 2] [3 4]]}