4.5 Pretty Printing Objects

We might notice that the objects got collapsed from the normal console log, e.g. address_components: [Array]. Here, if we want to know what the [Array] actually is, we need to do something.

Solution

console.log(JSON.stringify(body), undefined, 2);

The second argument is useless.
The third argument is the indentation setting.