JSON.parse:对象1.71中的属性值后应为','或'}' [英] JSON.parse: expected ',' or '}' after property value in object 1.71
本文介绍了JSON.parse:对象1.71中的属性值后应为','或'}'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
JSON.parse:在对象1.71中的属性值之后应为,"或}''
[由op更新:]
JSON.parse: expected '','' or ''}'' after property value in object 1.71
[update by op:]
{"status" : "success","id" : 1, "description" : "null", "createddate" : 2012-10-09, "createdby" : 0, "modifieddate" : 2012-10-09, "modifiedby" : 0, "deleted" : false}
那就是我的json结构!!!我认为是真的.但是当我解析json时会显示语法错误.
That''s my json structure !!! I think it''s true. But syntax error show when I parse json.
推荐答案
如果使用这样的在线解析器进行检查: ^ ],您将看到它在抱怨日期.您必须以其他格式(例如字符串,数字)传递它们,请检查有关此问题的信息: http://markembling.info/2011/07/json-date-time [ ^ ]
If you check it with an online parser like this one: http://json.parser.online.fr/[^], you will see that it is complaining about the dates. You have to pass them in other format (string, numeric for example), check hire about the problem: http://markembling.info/2011/07/json-date-time[^]
您尚未在此处发布任何代码,但基本上,您需要在代码行的末尾包含一个close或}标记. .
You have not posted any code here, but basically, you would need to include a closing , or } tag at the end of your line of code.
这篇关于JSON.parse:对象1.71中的属性值后应为','或'}'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文