我正在使用爲Google地圖編碼了多邊形的MySQL數據庫。當我嘗試返回查詢爲json時,jsonlint抱怨..我不知道爲什麼它的抱怨,我嘗試逃避在拉普隆的「}」,但仍然得到相同的錯誤。字符串中的JSON轉義序列無效
Parse error on line 20: ... "latlon": "}ciuF|a|[email protected]@[email protected] -----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
我的JSON是:
{ "maps": [ { "group_id": "0", "user_id": "113", "group_name": "", "note": "", "field_id": "", "field_name": "West Pasture", "field_notes": "", "date_created": "12/31/2012", "acres": "" } ], "polygon": [ { "polygon_id": "", "field_id": "1", "acres": "92", "latlon": "}ciuF|a|[email protected]@[email protected]@UxCjMlApAfFuBpI}E\[email protected]" } ] }
該錯誤提示有問題早在JSON,而不是在該行... – Evert