title: How to safely convert a string containing escaped JSON to valid JSON?
body: <p>I am communicating with a third party API that returns JSON responses as follows:</p>
  
  <pre><code>"{\"SomeResponse\":{\"FIrstAttribute\":8,\"SecondAttribute\":\"On\",\"ThirdAttribute\":{\"Id\":2,\"FirstName\":\"Okkie\",\"Name\":\"Bokkie\",\"Street\":\"\",\"StreetNumber\":null,\"PostCode\":\"\",\"City\":\"\",\"Country\":\"}}}"
  </code></pre>
  
  <p>It is kind of JSON... but as a String. Note the first and ending double quotes and of course all the escape slashes.</p>
  
  <p>Currently, I solve this by String.Replacing the backslashes and the first and end quote. After that, I am able to parse it.</p>
  
  <pre><code>mystring.Replace("\\", "");
  </code></pre>
  
  <p>However, what if one of the attributes actually has an backslash as a value? For example:</p>
  
  <pre><code>\"SecondAttribute\":\"My Super Back Slash: \\ . That was it.\"
  </code></pre>
  
  <p>In that case, I would accidentally remove the backslash that should be there in the value.</p>
  
  <p>Does anyone have a bright idea on how to parse this JSON String properly?</p>