I am working with MySQL db, which encoded the polygon for google maps. When I try to return the request as json, jsonlint complains. I'm not sure why his complaints are, I really tried to escape the "}" in 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:
{
"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 "
}
]
}
source share