All of the data is there, but it’s tricky to visually parse the result – is longitude a property of position? No – it’s a property of coords, which itself is a property of position. If only there were a way to pretty print JSON without pulling in a bunch of library code… Hang on – recent  versions of JSON.stringify() can take additional arguments – ‘replacer’ and ‘space’. Replacer is described thus:
If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.
while space ’causes the resulting string to be pretty-printed’.
So… just call JSON.stringify(obj, null, ‘ ‘) and your JSON will be pretty printed:
MUCH better! You can use the same trick to drop JSON into an element in the page – just use the <pre> tag so that the formatting is preserved:
 The three argument JSON.stringify() was introduced in ECMAScript 5 and is supported in Firefox 3.5.4+, IE 8.0+, Chrome 4.0+, Safari 4.0+ and Opera 10.5+. If you’re also targeting older browsers, then json2.js from https://github.com/douglascrockford/JSON-js provides excellent support.