I already read this topic. How can I print JSON using JavaScript?
In any case, the correct answer just works if I want to print this json on the console.
Doing something like
$("#myDiv").text(parsedJson);
or
$("#myDiv").html(parsedJson);
won't lead to pretty json.
My intention is to display a dialog box containing this json object in a form accessible to humans. Is it possible?
Phate source
share