title: Parsing JSON giving "unexpected token o" error
body: <p>I am having a problem parsing simple JSON strings. I have checked them on <a href="http://www.JSONLint.com">JSONLint</a> and it shows that they are valid. But when I try to parse them using either <code>JSON.parse</code> or the jQuery alternative it gives me the error <code>unexpected token o</code>:</p>
  
  <pre><code>&lt;!doctype HTML&gt;
  &lt;html&gt;
    &lt;head&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;script type="text/javascript"&gt;
        var cur_ques_details ={"ques_id":15,"ques_title":"jlkjlkjlkjljl"};
        var ques_list = JSON.parse(cur_ques_details);
  
        document.write(ques_list['ques_title']);
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Note: I'm encoding my strings using <code>json_encode()</code> in PHP.</p>