["string"][
"string": int,
"string1": [
"string": int,
]
"string2": [
"string": int,
]
"stringN": [
"string": int,
]
...
]
map[string]interface{}
type M map[string]interface{}
obj := M{
"hello": "world",
"hello2": []M{
{"a": 1},
{"b": 2},
},
"c": M{
"subC": 3,
},
}
type config map[string]interface{}
cfg := config{
"id": 123,
"components": config{
"user": "asd",
"db": config{
"user": "root",
"pswd": "pass",
},
},
}