title: Using Newtonsoft.Json, how do I deserialize JSON to a type with an IEnumerable property containing an interface type?
body: <p>I am consuming a RESTful Web service sending JSON, that I try to deserialize using <code>HttpContent.ReadAsAsync&lt;T&gt;</code>. The type I try to deserialize to declares a property that returns an IEnumerable containing an interface type. This code snippet demonstrates the kind of type I'm trying to deserialize to:</p>
  
  <pre><code>public class Data
  {
      public IEnumerable&lt;IChild&gt; Children { get; set; };
  }
  </code></pre>
  
  <p>The problem is that Newtonsoft.Json, underlying <code>HttpContent.ReadAsAsync&lt;T&gt;</code> doesn't understand how to deserialize objects of type <code>IChild</code>, the latter being an interface. How can I specify to Newtonsoft.Json how to deserialize IChild to a concrete type?</p>