这是
的一部分[
UserJSONImpl{
"id"=26136358,
"name"='BryanConnor',
"screenName"='thewhyaxis',
"location"='null',
"description"='TheWhyAxisisacollectionofindepthwritingaboutthevisualizationsthatdeserveyourattention.',
"isContributorsEnabled"=false,
我不太熟悉JSON语法,我还没有在网上找到提供介绍的来源;当我尝试解析JSONArray中的每个JSONObject时,我得到一个像
这样的错误Expected a ',' or ']' at character 14
当我输入jsonlint时:
Parse error on line 1:
[ UserJSONImpl{
-----^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', ']'
我的JSON出了什么问题?
答案 0 :(得分:3)
[
{
"UserJSONImpl": {
"id": 26136358,
"name": "BryanConnor",
"screenName": "thewhyaxis",
"location": null,
"description": "TheWhyAxisisacollectionofindepthwritingaboutthevisualizationsthatdeserveyourattention.",
"isContributorsEnabled": false
}
}
]
[ elements ]
elements
为value
,value
为object
,object
为{ members }
,members
为pair
pair
为string : value
value
为object