title: Parse string with double qoute breaks
body: <p>My question is related to this question <a href="https://stackoverflow.com/questions/14355655/jquery-parsejson-single-quote-vs-double-quote">jQuery.parseJSON single quote vs double quote</a>.
  There are many topics on this issue, but I still don't know clean solution.</p>
  
  <p>I dont have Jquery, and I am working in TypeScript (not JavaScript). But everythink else is same.</p>
  
  <p>My question is: What if I have string with double qoute ?</p>
  
  <p>How to resolve this problem ?
  Is there way to convert this in valid string type?</p>
  
  <pre><code>var obj = JSON.parse(data);
  </code></pre>
  
  <p>I will get error if json string is with double qoute.</p>
  
  <p><strong>SyntaxError: Unexpected token</strong> </p>
  
  <p>Whole code is:</p>
  
  <pre><code>fs.readFile(templatePath, 'utf8', (err: Error, data: Object) =&gt; {
      if (err) {
          res.send(500);
      }
  
      try {
          var obj = JSON.parse(data);
          res.json(obj);
      } catch (e) {
          res.send(500);
      }
  });
  </code></pre>
  
  <p>Thanks for help.</p>