title: JSON.parse can't recognize \" (backslash and quote) in string to parse
body: <p>I have serialized JSON with objects that have quotes in string like this:</p>
  
  <pre><code>var bla = [
      { 
          "label": "person", 
          "id": "1", 
          "data": "bla means: \"lala\"" 
      }
  ];
  </code></pre>
  
  <p>I know how it looks on server side. But when I debug it in browser I see that I receive error on this because it looks like below:</p>
  
  <pre><code>var bla = [
      { 
          "label": "person", 
          "id": "1", 
          "data": "bla means: "lala"" 
      }
  ];
  </code></pre>
  
  <p>and my error :</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token l in JSON at position 25 at
    JSON.parse ()</p>
  </blockquote>
  
  <p>I read that JSON should recognize <strong>\"</strong> <a href="https://www.json.org/" rel="nofollow noreferrer">https://www.json.org/</a></p>
  
  <p>Any ideas where should I correct it? On server side when I serialized object or on client side with JavaScript?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>On server side I use C# library <code>"System.Web.Script.Serialization"</code>
  The object to serialize:</p>
  
  <pre><code>List&lt;SomeObject&gt; someObject= new List&lt;SomeObject&gt;();
          SomeObject bla1 = new SomeObject();
          bla1.id = "1";
          bla1.label = "person";
          bla1.label = "bla means: \"lala\"";
          someObject.Add(bla1);
  </code></pre>
  
  <p><code>var bla = new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(someObject);</code></p>
  
  <p><strong>SUMMARY</strong></p>
  
  <p>I fix in on serialized string on server side, because I use API where I can't manipulate this objects.
  <code>var bla = new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(someObject).Replace("\\\"", "\\\\\\\"");</code></p>