JSON data in the wild

I tried to download some real JSON data today - from openweathermap.org <http://openweathermap.org/> - and found that it’s in a format we can’t handle. Specifically, a sequence of maps/objects, newline-separated:

{"_id":707860,"name":"Hurzuf","country":"UA","coord":{"lon":34.283333,"lat":44.549999}}
{"_id":519188,"name":"Novinki","country":"RU","coord":{"lon":37.666668,"lat":55.683334}}
{"_id":1283378,"name":"Gorkhā","country":"NP","coord":{"lon":84.633331,"lat":28}}

I wonder if this is common and whether we should cater for it?

Michael Kay
Saxonica

Received on Wednesday, 9 September 2015 21:22:21 UTC