title: Syntax error from JSON.parse()
body: <p>My custom method to get json from string:</p>
  
  <pre><code>function GetJSON(a) {
          if (typeof a !== "string" || !a || a == null) return null;
          a = a.replace(/\r\n|\r|\n|\t/g, '').replace(/\\/g, '/');
          return new Function("return " + a)();
      }
  
      var notes ='{editable:true,useAjax:false,notes:[{"top":76,"left":411,"width":30,"height":30,"text":"hill","editable":true},{"top":183,"left":556,"width":30,"height":30,"text":"lake","editable":true}]}';
  
      return GetJSON(notes); //&lt;-- works fine
  
      //I am trying to replace my custom method with
        return JSON.parse(notes);
  </code></pre>
  
  <p>But I get syntax error when I call JSON.parse()</p>
  
  <p>What can be wrong?</p>
  
  <p>EDIT:
  I pasted the actual value that I pass to JSON.parse() from debug output.</p>