title: Why is the slash an escapable character in JSON?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1580647/json-why-are-forward-slashes-escaped">JSON: why are forward slashes escaped?</a>  </p>
  </blockquote>
  
  
  
  <p><a href="http://json.org" rel="noreferrer">json.org</a> states, that forward slashes (aka solidus, <code>/</code>) can be escaped:</p>
  
  <pre><code>"\/"
  </code></pre>
  
  <p>However, unescaped slashes are valid, too:</p>
  
  <pre><code>"/"
  </code></pre>
  
  <p>What's the rational behind this? Does it come from the Javascript roots? (I.e., <code>"&lt;/script&gt;"</code> is a problem in browser-based Javascript, see <a href="https://crockford.com/javascript/script.html" rel="noreferrer">Douglas Crockford's comment</a>) Or has it any other reason?</p>