I\'m running this in node.js:
> x = { \'foo\' : \'bar\' } { foo: \'bar\' } > console.log(x) { foo: \'bar\' } undefined > console.log(\"hmm: \" + x)
you can use console.log(JSON.stringify(yourObject)); to print your object. it work!
console.log(JSON.stringify(yourObject));