title: Get JSON string from HTTP GET request
body: <p>Using fiddler to observe this URL:
  <a href="http://opencaselist.paperlessdebate.com/bin/AllDocs?view=attachments#format=json?|t=allattachments&amp;p=1&amp;l=10&amp;s=filename&amp;d=asc" rel="nofollow noreferrer">http://opencaselist.paperlessdebate.com/bin/AllDocs?view=attachments#format=json?|t=allattachments&amp;p=1&amp;l=10&amp;s=filename&amp;d=asc</a></p>
  
  <p>I find a nice JSON response like this
  <img src="https://i.stack.imgur.com/gBqp9.png" alt="enter image description here"></p>
  
  <p>How do I get this response into a string that I can save in a txt file using C#? Is there a way to turn an HTTP Web Response to a string? Is there something is NewtonSoft JSON that can help me? Are there particular terms that will help me google this more effectively?</p>
  
  <p>Every time I try I just get an HTML version of the web-page at the link and not the JSON data I'm trying to get:</p>
  
  <pre><code>    string url = "http://opencaselist.paperlessdebate.com/bin/AllDocs?view=attachments#|t=allattachments&amp;p=1&amp;l=10&amp;s=filename&amp;d=asc";
  
      HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
      httpWebRequest.Method = WebRequestMethods.Http.Get;
      httpWebRequest.Accept = "text/json";
      httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
      HttpWebResponse response = (HttpWebResponse)httpWebRequest.GetResponse();
      response.Close();
  </code></pre>