title: stringbuilder to not escape curly brackets
body: <p>I'm using JSON to get a System.Net.WebResponse then reading the response into a StringBuilder before getting the result of the response by calling the StringBuilder.ToString() method. I can't Parse such a respsone using Newtonsoft.Json.Linq.JObject.Parse(repsonse);</p>
  
  <p>My problem is that the ToString() method is removing my '{' and '}' characters because they get escaped unless matched with another '{'. Even if I do a StringBuilder.Replace("{", "{{") It doesn't work because the final brackets escape the first brackets --> Example below</p>
  
  <p>My code for getting the response is:</p>
  
  <pre><code>public static string GetResponseFromRequest(string url){       
  
          System.Net.WebRequest req = System.Net.WebRequest.Create(url);
          System.Net.WebResponse res = req.GetResponse();
          System.Text.StringBuilder sb = new System.Text.StringBuilder();
  
          byte[] read = new byte[256];
          int count = res.GetResponseStream().Read(read, 0, 256);
          while (count &gt; 0)
          {
              sb.Append(System.Text.ASCIIEncoding.ASCII.GetString(read));
              count = res.GetResponseStream().Read(read, 0, 256);
          }
          res.GetResponseStream().Close();
  
          res.Close();
  
          return sb.ToString();
      }
  </code></pre>
  
  <p>Here is a sample of what my response looks like:</p>
  
  <pre><code>{{ 
  "id" : "myID",
  "Name" : "MyDisplayName",
  "description" : "A, MyDescription",
  }"hasOverview" : true,
  "hasDescription" : true,
    }
  </code></pre>
  
  <p>AFTER StringBuilder.ToString is called it looks like this:</p>
  
  <pre><code> "{ 
      "id" : "myID",
      "Name" : "MyDisplayName",
      "description" : "A, MyDescription",
     }"hasOverview" : true,
      "hasDescription" : true,
        "
  </code></pre>
  
  <p>If I call StringBuilder.Replace("{", "{{") and StringBuilder.Replace("}", "}}") I get:</p>
  
  <pre><code>"{{ 
      "id" : "myID",
      "Name" : "MyDisplayName",
      "description" : "A, MyDescription",
     }}"hasOverview" : true,
      "hasDescription" : true,
        "
  </code></pre>
  
  <p>I need a way to tell ToString() to return a literal representation of what the string builder is holding so it doesn't take special characters into account. If possible just the '{' and '}' characters in particular.</p>