Print JSON parsed object?

I’ve got a javascript object which has been JSON parsed using JSON.parse I now want to print the object so I can debug it (something is going wrong with the function). When I do the following…

for (property in obj) {
    output += property + ': ' + obj[property]+'; ';
}
console.log(output);

I get multiple [object Object]’s listed. I’m wondering how would I print this in order to view the contents?

13 Answers
13

Leave a Comment