After performing a JSON parse on a JavaScript object using JSON.parse
, I am looking to print the object in order to debug it as there seems to be an issue with the function. When attempting to do so by executing the following code...
for (property in obj) {
output += property + ': ' + obj[property] + '; ';
}
console.log(output);
Instead of seeing the contents, I am getting multiple instances of [object Object]. What is the best way to print this in order to view the actual contents?