I already read this topic How can I pretty-print JSON using JavaScript?
anyway the correct answer just works if I want to print that json to the console.
Doing something like
$("#myDiv").text(parsedJson);
or
$("#myDiv").html(parsedJson);
will not result in a pretty json.
My intention is to display a dialog box containing that json object, in an human readable form..is it possible?