title: Deserialize JSON with RestSharp
body: <p>I am making a request to <code>http://api.weatherapi.com/v1/current.json</code> using <code>RetSharp</code> like so:</p>
  <pre><code>        var request = new RestSharp.Serializers.Newtonsoft.Json.RestRequest();
          request.AddHeader(&quot;content-type&quot;, &quot;application/json&quot;);
          var client = new RestClient(URL + urlParameters);
          client.Proxy = WebRequest.DefaultWebProxy; // I was led to believe this will fix my problem of my requests taking minutes on end to execute, but it didn't that much.
          var queryResult = client.Execute(request).Content;
          var response = JsonConvert.DeserializeObject&lt;CurrentJsonResponse&gt;(queryResult);
  </code></pre>
  <p>This works fine but I don't like that I have to make a separate call to <code>JsonConvert</code>, and, supposedly, RestSharp should have support for that kind of thing built-in.</p>
  <p>I tried the following:</p>
  <pre><code>        var response = client.Execute&lt;CurrentJsonResponse&gt;(request).Data; // returns a CurrentJsonResponse object with null properties.
  
          request.JsonSerializer = new NewtonsoftJsonSerializer(); // I put it at the very start, but doesn't help.
  
          var jsonDeserializer = new JsonDeserializer();
          client.AddHandler(&quot;application/json&quot;, jsonDeserializer); // Second verse, same as the first.
  
          var response = client.Execute&lt;object&gt;(request).Data; // Correctly creates an annonymous object that has the right properties/information but it's not exactly what I'm going for. As I wanted it strongly-typed.
  </code></pre>
  <p>Nothing worked. How can I deserialize the json response I get with RestSharp explicitly, without a separate call to Newtonsoft. I have downloaded the <code>RestSharp.Serializers.Newtonsoft.Json</code> nuget.</p>