title: Are double quotes supported in a JSON string?
body: <p>When I escape double quotes via <code>\"</code> in a JSON string the parser fails.  However, when I use <code>JSON.stringify</code> it is capable of properly escaping the string somehow.</p>
  
  <p>I suspect that I'm not escaping the double quotes properly.  Look to the code for more detail.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var data = {
    "singleQuoteHtml": "&lt;span class='qwer'&gt;content&lt;/span&gt;",
    "doubleQuoteHtml": "&lt;span class=\"qwer\"&gt;content&lt;/span&gt;",
    "singleQuote": "'hi'",
    "doubleQuote": "\"hi\""
  };
  
  var dataString = '{"singleQuoteHtml": "&lt;span class=\'qwer\'&gt;content&lt;/span&gt;",'
    + '"doubleQuoteHtml": "&lt;span class=\"qwer\"&gt;content&lt;/span&gt;",'
    + '"singleQuote": "\'hi\'",'
    + '"doubleQuote": "\"hi\"'
    + '}';
  
  
  
  function Parse()
  {
    //Stringify is capable of creating single quotes and double quotes
    console.log(JSON.parse(JSON.stringify(data)));
    
    //When I escape double quotes myself the parser fails
    //Uncomment to see failure
    //console.log(JSON.parse(dataString));
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button onclick="Parse();"&gt;Parse JSON &lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>