title: Get JSON object in c# from a web-request
body: <p>I need to get json data from an external domain. I used webrequest to get the response from a website. heres the code:</p>
  
  <pre><code>var search = umbraco.library.Request("search");
  string Url = "http://ff.ss.dk/Suggest.ff?username=us&amp;password=pass&amp;channel=dk&amp;format=JSON&amp;query="+search;
  WebRequest webRequest = WebRequest.Create(Url);
  WebResponse response = webRequest.GetResponse();
  Stream responseStream = response.GetResponseStream();
  StreamReader reader = new StreamReader(responseStream);
  </code></pre>
  
  <p>this way i am getting an output like this</p>
  
  <blockquote>
    <p>[{&quot;hitCount&quot;:0,&quot;imageURL&quot;:&quot;&quot;,&quot;query&quot;:&quot;Atrix h\u00E5ndcreme Dobbeltvirkende /100 Ml&quot;,&quot;type&quot;:&quot;productName&quot;},{&quot;hitCount&quot;:0,&quot;imageURL&quot;:&quot;&quot;,&quot;query&quot;:&quot;V\u00E6gur magnetisk attraction&quot;,&quot;type&quot;:&quot;productName&quot;},{&quot;hitCount&quot;:0,&quot;imageURL&quot;:&quot;&quot;,&quot;query&quot;:&quot;Bic kuglepen Atlantis , bl\u00E5&quot;,&quot;type&quot;:&quot;productName&quot;},{&quot;hitCount&quot;:0,&quot;imageURL&quot;:&quot;&quot;,&quot;query&quot;:&quot;Laminering AT1256 31cm x30m A3&quot;,&quot;type&quot;:&quot;productName&quot;}]</p>
  </blockquote>
  
  <p>I want to get this output data in JSON object format, that i can use this in my java script functions.
  i think the output data is in inappropriate format because i have used streamreader function to get data.is there any idea to solve this issue?</p>