title: Not able to read/access data from JSON.?
body: <p>Trying to access/read data from <code>JSON</code>, which is giving me undefined value.</p>
  
  <p>Have a string, using <code>JSON</code>.parse converting it to object</p>
  
  <pre><code>str = '{"content":[{"newstitle":"a","newsdesc":"a","newsimage":"a"}],"leftnav":[{"navtitle":"b","navdesc":"b","navimage":"b"}]}'
  
  var finalobj = JSON.parse(str);
  alert(finalobj.leftnav.navtitle);
  </code></pre>
  
  <p>So the alert output should be value "b" but it is returning "undefined".</p>
  
  <p>Thanks in advance</p>