1.JSON数值({ "key" : value})
{
"key" : 520,
"key1" : 1314
}
2.JSON字符串({ "key" : "value"})
{
"key" : "我爱你",
"key1" : "一生一世"
}
3.JSON数组({ "key" : [value]})
{
"key" : [520, 1314],
"key1" : [520, 3344]
}
4.JSON对象({ "key" : {value}})
{
"key" : {"520": "我爱你"},
"key1" : {"1314": "一生一世"}
}
5.JSON对象数组({ "key" : [{"key1": "value1"},{"key2": "value2"}]})
{
"我" : [
{"key": "我爱你"},
{"key1": "一生一世"}
]
}
6.JSON数组对象({"key":{"key1":[value1,value2]}})
{
"我" : {
[520,1314],
["我爱你", "一生一世"]
}
}