【发布时间】:2012-01-21 10:26:06
【问题描述】:
我收到此错误:
JSON.parse:意外字符
当我在 firebug 中运行这条语句时:
JSON.parse({"balance":0,"count":0,"time":1323973673061,"firstname":"howard","userId":5383,"localid":1,"freeExpiration":0,"status":false});
为什么会这样? JSON 字符串对我来说似乎是正确的,我还使用 JSHint 对其进行了测试。上述情况下传递的对象是内容类型设置为application/json的服务器响应
【问题讨论】:
标签: javascript json