If you use Chrome, Firefox, or IE10 +, why not expand the console and use
(function() { console.dump = function(object) { if (window.JSON && window.JSON.stringify) console.log(JSON.stringify(object)); else console.log(object); }; })();
for a concise, cross-browser solution.
Chris Hodges Jun 18 '13 at 10:43 2013-06-18 10:43
source share