title: Display a pretty json on an html div..possible?
body: <p>I already read this topic <a href="https://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using-javascript">How can I pretty-print JSON using JavaScript?</a></p>
  
  <p>anyway the correct answer just works if I want to print that json to the console.</p>
  
  <p>Doing something like</p>
  
  <pre><code>$("#myDiv").text(parsedJson);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$("#myDiv").html(parsedJson);
  </code></pre>
  
  <p>will not result in a pretty json.</p>
  
  <p>My intention is to display a dialog box containing that json object, in an human readable form..is it possible?</p>