Skip to main content

Posts

Showing posts from October, 2013

How to Print JSON parsed object?

Most debugger consoles support displaying objects directly. Just use console.log(obj); Depending on your debugger this most likely will display the object in the console as a collapsed tree. You can open the tree and inspect the object. console.dir  and  JSON.stringify(obj)  will give you back a string representation of the object.