我在下面的JSON对象上得到了一个"Parse错误“。想知道怎么修好它。
{“信息”:{ "nm":“挣得好”,"st":"y",“源”:“互联网”,“故事”:{“不要让微笑愚弄你。”萨宾·利斯基( Sabine )是俗话说的“打架中的疯子”,至少在涉及草场的时候是这样。李西基或许是唯一一位能从权力和运动的角度跟上塞雷娜·威廉姆斯的选手,她不仅在周一的温布尔登16回合比赛中以6-2、1-6、6-4击败了威廉姆斯。“”,“女子网球,就像男子网球一样,最近变得可预测了,威廉姆斯、莎拉波娃或维多利亚·阿扎伦卡赢得了最后六个奴隶头衔。”
结果:
{
"Information": [
{
"nm": "Earn Goody",
"st": "y",
"source": "Internet",
"story": [
{
"Don't let the smile fool you. Sabine Lisicki is the proverbial crazyguyinthefight at least when grass courts are involved. Perhaps the only player capable of keeping up with Serena Williams from a power-and-movement standpoint, Lisicki not only kept up, she beat Williams, 6-2, 1-6, 6-4, in the Round of 16 at Wimbledon on Monday.",
"Women's tennis had, like men's tennis, grown predictable recently, with either Williams, Maria Sharapova, or Victoria Azarenka winning the last six slam titles."
}
]
}
]
}
Parse error on line 9:
...imbledon on Monday.",
-----------------------^
Expecting ':'
发布于 2013-07-01 17:51:27
Information[0]/story[0]
中的"JSON“数据字符串包含未转义引号("
)。这是无效的JSON。
这附近的某个地方:。。proverbial "crazy guy in the fight," at least
。。。
数据字符串中的引号应该转义(\"
)。
像这样:。。。proverbial \"crazy guy in the fight,\" at least
。。。
此外,story[0]
JSON对象包含没有名称的字段--也是无效的。您只需将JSON字符串放入花括号({ "abc" }
)中即可。JSON对象是键值对的集合,其中键是JSON字符串({ "some-key": "abc" }
)。
通常,请参阅此处:http://json.org/
发布于 2013-07-01 17:57:46
您可能希望故事数组包含字符串值吗?在这种情况下,删除数组中的卷曲"{}“。
引用上的其他注释也适用,但错误消息与无效的数组格式有关。请参阅JSON.org
https://stackoverflow.com/questions/17410557
复制相似问题