I am working with a MySQL db that has encoded polygon for google maps. When I try to return the query as json, jsonlint complains.. I am not sure why its complaining , I did try escaping the "}" in the latlon but still get the same error.
Parse error on line 20:
... "latlon": "}ciuF|a|pNcUr@d@es@
-----------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
My json is:
{
"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|pNcUr@d@es@fIHXaNtCn@UxCjMlApAfFuBpI}E\ChJdEl@xAtE"
}
]
}