title: escape with JSON.parse()
body: <p>I'm trying to apply a simple escaping process in javascript &lt;-> php communication. I doesn't work... I'm not sure why.</p>
  
  <p>here is some test code I wrote :
      
      </p>
  
  <pre><code>&lt;head&gt;
      &lt;meta charset='utf-8'&gt;
      &lt;title&gt;Test&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;script&gt;
          JSON.parse('[{"id":"43","english":"ar\"m","korean":"\ud314","date":"49 minute(s) ago."}]');
      &lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>The escaped character is a double quote inside the word arm.
  The error returned when opening the page is :</p>
  
  <pre><code>VM84:1 Uncaught SyntaxError: Unexpected token m in JSON at position 26
       at JSON.parse (&lt;anonymous&gt;)
      at test.html:11
  (anonymous) @ test.html:11
  </code></pre>