3 ms·
There are plugins or you could console.log(JSON.stringify(jsonData, null, "\t")); The above will pretty print also.
by mattkrea 12y ago
There are plugins or you could
console.log(JSON.stringify(jsonData, null, "\t"));
The above will pretty print also.
- uptownhr 12y agoThis doesn't seem like it would print pretty to the DOM. From the console, you can just console.log a JSON fine. It's when you try to write to the DOM nicely is where I cannot find a good solution.