Hi I have problem with unmarshalling nested JSON arrays. What struct should I create?
I want to avoid using interface{}
as much as possible, but I really don't know if it is possible in this case.
Json I want to unmarshall:
"[[[{\"aaa\": \"aaa\"}]]]"
and struct I want to use to unmarshall this:
type SomeStructNestedNested struct {
Aaa string `json:"aaa"`
}
type SomeStructNested struct {
SomeStructNestedNested []SomeStructNestedNested
}
type SomeStruct struct {
SomeStructNested []SomeStructNested
}
Link to example: https://play.golang.org/p/owuMptNrix