title: Why aren't double quotes and backslashes allowed in strings in the JSON standard?
body: <p>If I run this in a JavaScript console in Chrome or Firebug, it works fine.</p>
  <pre><code>JSON.parse('&quot;\u0027&quot;') // Escaped single-quote
  </code></pre>
  <p>But if I run either of these 2 lines in a Javascript console, it throws an error.</p>
  <pre><code>JSON.parse('&quot;\u0022&quot;') // Escaped double-quote
  JSON.parse('&quot;\u005C&quot;') // Escaped backslash
  </code></pre>
  <p><a href="https://www.rfc-editor.org/rfc/rfc4627#section-2.5" rel="nofollow noreferrer">RFC 4627 section 2.5</a> seems to imply that <code>\</code> and <code>&quot;</code> are allowed characters as long as they're properly escaped. The 2 browsers I've tried this in don't seem to allow it, however. Is there something I'm doing wrong here or are they really not allowed in strings? I've also tried using <code>\&quot;</code> and <code>\\</code> in place of <code>\u0022</code> and <code>\u005C</code> respectively.</p>
  <p>I feel like I'm just doing something very wrong, because I find it hard to believe that JSON would not allow these characters in strings, especially since the specification doesn't seem to mention anything that I could find saying they're not allowed.</p>