Javascript JSON.parse or directly access
<p>When we can read a property directly from string:</p>

<pre><code>var data = {"id":1,"name":"abc","address":{"streetName":"cde","streetId":2}};
console.log(data.address.streetName); // cde
</code></pre>

<p>Why do people use <code>JSON.parse</code>:</p>

<pre><code>var obj = JSON.parse(data);
console.log(obj.address.streetName); // cde
</code></pre>
