I am in search of a solution to get Google Maps suggestions. Unfortunately, the official geocoding API does not provide real suggestions, only geocoding.
Currently, there are two versions available:
http://maps.google.de/maps/suggest?q=test&cp=1&hl=de&gl=de&v=2&json=b
(YAML)http://maps.google.de/maps/suggest?q=test&cp=1&hl=de&gl=de&v=2&json=a
(invalid JSON)
This makes it difficult for json.parse to work properly.
I am looking for suggestions on how to deal with this data - should we try to parse it or fix it before parsing?