title: Error parsing JSON values in ASP.NET MVC?
body: <p>I am trying to use StackOverflow's search API to search questions.</p>
  
  <p>I am using this action to perform the parsing :</p>
  
  <pre><code>public ActionResult StackExchange(string sq)
  {
      string url = "http://api.stackoverflow.com/1.1/search?intitle=" + sq + "&amp;order=desc";    
      var client = new WebClient();
      var response = client.DownloadString(new Uri(url));
      JObject o = JObject.Parse(response);// ERROR
      int total = (int)o["total"];
      return View(total);
  }
  </code></pre>
  
  <p>Here is the JSON url I am trying to parse: </p>
  
  <p><a href="http://api.stackoverflow.com/1.1/search?intitle=asp.net%20custom%20404&amp;order=desc">http://api.stackoverflow.com/1.1/search?intitle=asp.net%20custom%20404&amp;order=desc</a></p>
  
  <p>I am trying to extract the following data:</p>
  
  <pre><code>`"total": 3` , 
  `"question_timeline_url": "/questions/10868557/timeline",`
  `"title": "Asp.net custom 404 not working using Intelligencia rewriter"`
  </code></pre>
  
  <p>Its giving error as : <strong><em>Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: . Path '', line 0, position 0.</em></strong></p>
  
  <p>What can be the reason for the exception? I used the same method earlier and it worked fine.</p>
  
  <p>Please suggest.</p>