title: JSON.parse with newline
body: <p>Why can't you parse a json with a <code>\n</code> character in javascript</p>
  
  <p><code>JSON.parse('{"x": "\n"}')</code></p>
  
  <p>However when you do <code>JSON.parse(JSON.stringify({"x" : "\n"}))</code>, it is valid.</p>
  
  <p><a href="http://www.jslint.com/" rel="noreferrer">http://www.jslint.com/</a> says that <code>{"x": "\n"}</code> is a valid JSON. I wonder what does spec says about this?</p>
  
  <p><strong>Update:</strong>
  For those who marked this duplicate, this is not the same question as "How to handle newlines in JSON". This question is more about why can't an unescaped newline character allowed in JSON.</p>