title: How to use FastJson to go from Json string to Object Collection
body: <p>I am using <a href="http://fastjson.codeplex.com/" rel="noreferrer">fastJSON</a> and I ran into a problem.  I cannot take a JSON string and convert it to a collection of objects.</p>
  
  <p>I thought it could handle this but maybe I am doing it wrong or misunderstood.</p>
  
  <blockquote>
    <p>Handles polymorphic collections of objects</p>
  </blockquote>
  
  <p>Here is an example I did in a C# cmd line app (just download the .cs files and add to a project and copy the follow code to test).</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace ConsoleApplication1
  {
      class Program
      {
          static void Main(string[] args)
          {
              List&lt;Class1&gt; store = new List&lt;Class1&gt;();
              for (int i = 0; i &lt; 3; i++)
              {
                  Class1 c = new Class1();
                  c.Name = "test";
                  c.Start = DateTime.Now;
                  store.Add(c);
              }
  
             string jsonResult = fastJSON.JSON.Instance.ToJSON(store);
  
             List&lt;Class1&gt; backToObject = fastJSON.JSON.Instance.
                 ToObject&lt;List&lt;Class1&gt;&gt;(jsonResult);
          }
      }
  
      public class Class1
      {
          public string Name { get; set; }
          public DateTime Start { get; set; }
      }
  }
  </code></pre>
  
  <p><code>backToObject</code> is always null. </p>
  
  <p>I am using fastJSON because I need something that really has no dependencies on .NET libraries and I am using monodroid (and probably later monotouch) and it is very picky in what you can use and can't use.</p>
  
  <p>For instance I can not use the Json.net library (I think there is one for monodroid but I trying to make my code reusable for when I do the iPhone part).</p>