title: How to deserialize polymorphic collections in JsonFX?
body: <p>My JsonFX serialization code works, but the object that I'm serializing contains a list of polymorphic entities, and they're all deserialized as their base type and not their actual type.</p>
  
  <p>Here's my serialization code:</p>
  
  <pre><code>public static string Serialize(System.Object obj)
  {
      StringBuilder builder = new StringBuilder();
      using (TextWriter textWriter = new StringWriter(builder))
      {
          JsonWriter writer = new JsonWriter(textWriter);
          writer.Write(obj);
  
          return builder.ToString();
      }
  }
  
  public static T Deserialize&lt;T&gt;(string json)
  {
      using (TextReader textReader = new StringReader(json))
      {
          var jsonReader = new JsonReader(textReader);
          return jsonReader.Deserialize&lt;T&gt;();
      }
  }
  </code></pre>
  
  <p>As you can see it's pretty straightforward. I'm also not decorating my classes with any attributes or anything special to make them serializable. Besides the polymorphic problem, it all just seems to be working properly.</p>
  
  <p>So how can I get my polymorphic types to deserialize properly?.</p>
  
  <p>Thanks.</p>