kos*_*bou 1 javascript jquery json
我有以下JSON字符串:
var billjson = "({'posts' : [{'Id' :' 7553','Code' :'1186 ','Address' :' GGGG 39? ','Name' : ' GGGG NAME 3 ','Description' : ' G 3 ','EntrySeason' : ' GGGGG 08-09 ','Period' : ' 10/2009 ','Revenue' : ' 4.10'},{'Id' :' 7553','Code' :'1186 ','Address' :' GGGG 39? ','Name' : ' FFFF NAME 3 ','Description' : ' F 3 ','EntrySeason' : ' FFFF 08-09 ','Period' : ' 10/2009 ','Revenue' : ' 4.10'}]})"
Run Code Online (Sandbox Code Playgroud)
我正在尝试使用代码创建一个JSON对象:
var mybilljson = jQuery.parseJSON( billjson );
Run Code Online (Sandbox Code Playgroud)
但控制台的结果是:
未捕获的无效JSON:
为什么?