title: JSON.parse() not working
body: <p>I have a json from my server which is - </p>
  
  <pre><code>{"canApprove": true,"hasDisplayed": false}  
  </code></pre>
  
  <p>I can parse the json like this - </p>
  
  <pre><code>var msg = JSON.parse('{"canApprove": true,"hasDisplayed": false}');
  alert(msg.canApprove);  //shows true.
  </code></pre>
  
  <p>At my ajax response function I caught the same json mentioned earlier by a method parameter <code>jsonObject</code> - </p>
  
  <pre><code>//response function
  function(jsonObject){
  
    //here jsonObject contains the same json -  {"canApprove":true,"hasDisplayed": false}
    //But without the surrounding single quote
    //I have confirmed about this by seeing my server side log.
  
    var msg = JSON.parse(jsonObject); // this gives the error
  
  }
  </code></pre>
  
  <p>But now I got the following error -  </p>
  
  <blockquote>
    <p>SyntaxError: JSON.parse: unexpected character at line 1 column 2 of
    the JSON data</p>
  </blockquote>
  
  <p>Can anyone tell me why I am getting the error?</p>