title: RestSharp Deserialize JSON Dictionary
body: <p>I'm having some trouble using RestSharp to deserialize a JSON response from a REST service, but I suspect this would happen with Newtonsoft or other libraries, it's a serialization thing rather than a library-specific thing.</p>
  
  <p>The response is part dictionary/collection, part response code, but the dictionary/collection elements aren't presented as an array, but items with a numeric property name.</p>
  
  <pre><code>{ "StatusCode": 1, "1": { forename: "Test", surname: "Subject", addressLine1: "1 The Street" }, "2": { ... }, "3": { ... } ... }
  </code></pre>
  
  <p>I'm trying to deserialize this to a POCO, but I'm not sure how to go about deserializing those numbered items.  Has anyone done this before, or know how I can do this?  I'm not precious about the POCO, anything that works is fine.</p>
  
  <pre><code>public class ServiceResponse
  {
      public int StatusCode { get; set; }
      public Dictionary&lt;int, ServiceResponseItem&gt; Items { get; set; }
  }
  
  public class ServiceResponseItem 
  {
      public string Forename { get; set; }
      public string Surname { get; set; }
      public string AddressLine1 { get; set; }
  }
  </code></pre>