<pre id='formated'></pre>
<script type="text/JavaScript">
var json = JSON.parse('{"glossary":{"title":"example glossary","GlossDiv":{"title":"S","GlossList":{"GlossEntry":{"ID":"SGML","SortAs":"SGML","GlossTerm":"Standard Generalized Markup Language","Acronym":"SGML","Abbrev":"ISO 8879:1986","GlossDef":{"para":"A meta-markup language, used to create markup languages such as DocBook.","GlossSeeAlso":["GML","XML"]},"GlossSee":"markup"}}}}}');
var formated = document.getElementById('formated');
formated.innerHTML = JSON.stringify(json, null, 4);
</script>