how to alert an object

Subject:

var myObj = {"myProp":"Hello"}; alert (JSON.stringify(myObj)); // alerts {"myProp":"Hello"};

 

references: http://stackoverflow.com/questions/5753931/how-can-i-view-an-object-with-an-alert

2016-01-05 10:56:52gstlouis