Json pretty function is not working
<p>Im new to Javascript and I have to print Json output using pretty function, but the output is not as expected, it just prints normal but Im expecting with indentation. I have also gone through the following links, can anyone please help me why this is not working.</p>

<p><a href="http://stackoverflow.com/questions/4810841/json-pretty-print-using-javascript">JSON pretty print using JavaScript</a></p>

<pre><code>&lt;html&gt;
&lt;script type="text/javascript"&gt;
    function showJson(){    
        var jsonString = "{array:[1,2,3],boolean:true,null:null,number:123,object:{a:b,c:d,e:f},string:Hello World}";
        document.getElementById('json_output').innerHTML = JSON.stringify(jsonString, null, '\t');
    }

    function output(inp) {
        document.body.appendChild(document.createElement('pre')).innerHTML = inp;
    }


&lt;/script&gt;
&lt;body&gt;
    &lt;input type="button" onclick="showJson();" value="Click Me!!"&gt;
    &lt;br&gt;
    &lt;br&gt;
    STRING FROM DEVICE : &lt;div id='json_output'&gt;HI&lt;/div&gt;
&lt;/body&gt;
</code></pre>

<p></p>
