Typically if we just use alert(object); it will show as [object Object]. How to print all the content parameters of an object in JavaScript?
Typically if we just use alert(object); it will show as [object Object]. How to print all the content parameters of an object in JavaScript?
Print content of object you can use
console.log(obj_str);
you can see the result in console like below.
Object {description: "test"}
For open console press F12 in chrome browser, you will found console tab in debug mode.