title: Sending Restsharp reponse to a class
body: <p>I'm trying to send the content of this API response into a custom response class.  This produces a parsing error.  Is there an additional conversion needed before the RestSharp response works with Newtonsoft?  The class has three strings which are meant to grab the three members of the JSON with the same name.</p>
  <pre><code>IRestResponse response = client.Execute(request);
  
  &lt;CLASSNAME&gt; content = JsonConvert.DeserializeObject&lt;CLASSNAME&gt;(response.ToString()); 
  </code></pre>
  <p>The parsing error is &quot;'Unexpected character encountered while parsing value: R. Path '', line 0, position 0.'&quot;   My class is as follows:</p>
  <pre><code>public class Response
  {
  
      public string name { get; set; }
  
      public string msg { get; set; }
  
      public string code { get; set; }
  
  }
  </code></pre>
  <p>The JSON is as follows:</p>
  <pre><code>{
  name:
  msg:
  code:
  ...bunch of other stuff...
  }
  </code></pre>