json数据是以键值对形式返回的数据格式
{//这里为jsonObject
"programmers" //这里是jsonArray的键
: [//这里为jsonArray的值
{
"firstName": "Brett",
"lastName": "McLaughlin",
"email": "aaaa"
}, {
"firstName": "Jason",
"lastName": "Hunter",
"email": "bbbb"
}, {
"firstName": "Elliotte",
"lastName": "Harold",
"email": "cccc"
}
]
}
{//这里为jsonObject
"programmers" //这里是jsonArray的键
: [//这里为jsonArray的值
{
"firstName": "Brett",
"lastName": "McLaughlin",
"email": "aaaa"
}, {
"firstName": "Jason",
"lastName": "Hunter",
"email": "bbbb"
}, {
"firstName": "Elliotte",
"lastName": "Harold",
"email": "cccc"
}
]
}