|
本帖最后由 dfui 于 2020-3-9 22:06 编辑
JSON 先美化,再解析到树就失败.其它有点不会失败.
或者,用网站的json美化解析都不会失败.还请修复一下.
{"trans_result":{"data":[{"dst":"\u871c\u8702","prefixWrap":0,"result":[[0,"\u871c\u8702",["0|3"],["1|\n"],["0|3"],["0|6"]]],"src":"bee"},{"dst":"\u5bb6","prefixWrap":0,"result":[[1,"\u5bb6",["4|4"],["1|\n"],["0|4"],["0|3"]]],"src":"home"},{"dst":"\u72d7","prefixWrap":0,"result":[[2,"\u72d7",["9|3"],["1|\n"],["0|3"],["0|3"]]],"src":"dog"},{"dst":"\u9e21\u86cb","prefixWrap":0,"result":[[3,"\u9e21\u86cb",["13|3"],["1|\n"],["0|3"],["0|6"]]],"src":"egg"}],"from":"en","status":0,"to":"zh","type":2,"phonetic":[{"src_str":"\u871c","trg_str":"m\u00ec"},{"src_str":"\u8702","trg_str":"f\u0113ng"},{"src_str":"\n","trg_str":" "},{"src_str":"\u5bb6","trg_str":"ji\u0101"},{"src_str":"\n","trg_str":" "},{"src_str":"\u72d7","trg_str":"g\u01d2u"},{"src_str":"\n","trg_str":" "},{"src_str":"\u9e21","trg_str":"j\u012b"},{"src_str":"\u86cb","trg_str":"d\u00e0n"}],"keywords":[{"means":["\u871c\u8702","\u805a\u4f1a"],"word":"bee"},{"means":["\u72d7","\u72ac","\u516c\u72d7","\u516c\u72d0","\u516c\u72fc","\u8d5b\u72d7","\u7075\ud851\udfe5\u8d5b","\u56f0\u6270\uff0c\u6298\u78e8\uff0c\u7ea0\u7f20","\u8ddf\u8e2a","\u5c3e\u968f"],"word":"dog"},{"means":["\u86cb","\u5375","\u79bd\u86cb","\u9e21\u86cb","\u5375\u5b50","\u5375\u7ec6\u80de","\u6002\u607f","\u9f13\u52b1"],"word":"egg"}]},"liju_result":{"double":"","single":""},"logid":3574703824}
https://www.sojson.com/simple_json.html
这个网站怎么解析都不会错误.还请工程师修复一下.谢谢!
|
|