console log multiple lines pretty print object code example
Example 1: console.log printing object object
require('util').inspect.defaultOptions.depth = null
Example 2: pretty print json in console
new JSONObject(json).toString(2)
require('util').inspect.defaultOptions.depth = null
new JSONObject(json).toString(2)