我收到此错误:
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