为什么这个 JSON 在 ie8 中无效,但在 firefox 或 chrome 中无效?在我的回调中,我使用 jquery 解析器解析结果以删除一些无效字符。
myStringResults = myStringResults.replace("},]","}]");
myStringResults = myStringResults.replace(/'/g,'"');
var objDoc = $.parseJSON(myStringResults);
消息:无效的 JSON:
[{"id":"4796","parent":"4796","name":"Fname","revision":"1","date":"2013 年 3 月 1 日下午 3:44:22" ,"作者":"席尔瓦,杰弗里 M","文件名":"C:\Users\jmsilva\Desktop\VOC pres.pdf","type":"0"},{"id":"4797", "parent":"4797","name":"Fname","revision":"1","date":"Mar 1, 2013 3:50:46 PM","author":"Silva, Jeffery M ","文件名":"C:\Users\jmsilva\Desktop\testUpload.doc","type":"0"}]