【发布时间】:2013-08-22 16:13:48
【问题描述】:
这里是部分
[
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 有什么问题?
【问题讨论】:
-
一切。您的代码与 JSON 不太相似。请参阅json.org 的规范
-
看起来您缺少一堆
'字符来关闭您的字符串。也许这只是您的代码中的格式错误?
标签: json jsonlint jsonobject