title: Call API using Refit and deserialize to dynamic
body: <p>I'm calling a REST service using Refit and I want to deserialize the JSON that is returned as a dynamic type.</p>
  
  <p>I tried defining the interface as </p>
  
  <pre><code>[Get("/foo")]
  Task&lt;dynamic&gt; GetFoo();
  </code></pre>
  
  <p>but the call times out.</p>
  
  <p>I know I can deserialize to a dynamic like this</p>
  
  <pre><code>var mockString = "{ title: { name: 'fred', book: 'job'} }";
  dynamic d = JsonConvert.DeserializeObject(mockString);
  </code></pre>
  
  <p>but I can't figure out what to pass to Refit to get it to do the same.</p>
  
  <p>Another option would be to get Refit to pass the raw JSON back so I can deserialize it myself but I can't see a way to do that either.</p>
  
  <p>Any ideas?</p>