I am aware of the fact that for JSON whitespace matters. But, just for debug output, I would like to print JSON objects formatted, thus with tabs and newlines.

Is there a function in JavaScript for formatted JSON stringification?

Edit
Report