Reading json from hidden input value
<p>trying to read the JSON from hidden inout value. </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;input id="hdn" type="hidden" value='{"products":{"id":100001,name:"Ram"}}'&gt;
&lt;script type="text/javascript"&gt;

    var jsonObj = document.getElementById('hdn').value;

    alert(jsonObj);

    alert(jsonObj.products.name);

&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
