title: Why jQuery.parseJSON does not accept newlines?
body: <p>Ok so I've been dealing with a PHP 5.3 server returning a hand-made JSON (because in 5.3 there's no <code>JSON_UNESCAPE_UNICODE</code> in the <code>json_encode</code> function) and after reading <a href="https://stackoverflow.com/a/2275428/276451">this thread</a> and making some tests, I think I've found a problem in jQuery's <code>parseJSON</code> function.</p>
  
  <p>Suppose I have the following JSON:</p>
  
  <pre><code>{
      "hello": "hi\nlittle boy?"
  }
  </code></pre>
  
  <p>If you check it using <a href="http://jsonlint.com/" rel="nofollow noreferrer">jsonlint.com</a> you can see it's valid JSON. However, if you try the following, you get an error message:</p>
  
  <pre><code>$(function(){
      try{
          $.parseJSON('{ "hello": "hi\nlittle boy?" }');
      } catch (exception) {
          alert(exception.message);
      }    
  });​
  </code></pre>
  
  <p><a href="http://jsfiddle.net/m8t89/" rel="nofollow noreferrer">Link to the fiddle</a>.</p>
  
  <p>I've opened a <a href="http://bugs.jquery.com/ticket/12666" rel="nofollow noreferrer">bug report</a> at jQuery, because I think it's a proper bug. What do you think?</p>