title: Parse JSON on javascript after return JsonConvert.SerializeObject(json) [.NET handler]
body: <p>i'm developing an web application in .net platform.</p>
  
  <p>i have wrote an Handler code that return a JSON object to Javascript (after i request in AJAX).</p>
  
  <p>the Handler code:</p>
  
  <pre><code>var wrapper = new { 
      left = left.ToString(), 
      top = top.ToString(), 
      width = width.ToString(), 
      height = height.ToString() };
  context.Response.Write(JsonConvert.SerializeObject(wrapper));
  </code></pre>
  
  <p>In Javascript, when i do alert, i see that i get an object. and it's good.<br>
  But now i want to parse it to JSON.</p>
  
  <p>when i do <code>JSON.parse(msg);</code> i get an error </p>
  
  <blockquote>
    <p>"JSON.parse: unexpected character"</p>
  </blockquote>
  
  <p>when i do <code>jQuery.parseJSON(msg);</code> using jquery-1.6.2, i get this error</p>
  
  <blockquote>
    <p>jQuery.parseJSON is not a function (i'm using jquery-1.6.2)</p>
  </blockquote>
  
  <p>What is the problem?</p>