console log string and object code example
Example 1: cosnsole.log without obj object
console.log(JSON.stringify(myObject, null, 4));
Example 2: console.log printing object object
require('util').inspect.defaultOptions.depth = null
console.log(JSON.stringify(myObject, null, 4));
require('util').inspect.defaultOptions.depth = null