title: Deserializing a JSON array of mixed types
body: <p>I'm having trouble deserializing a JSON array of mixed types using the DataContractJsonSerializer class. I've spent a bunch of time looking for a solution to no avail, so I thought I'd go ahead and ask here.</p>
  
  <p>Basically, I am getting a JSON string like the one below. I'd like to get the array to deserialize into an List where position 0 has an Int32, position 1 has a String, and position 2 has an instance of my custom class.</p>
  
  <pre><code>[
     2,
     "Mr. Smith",
     {
        "num":169,
        "name":"main street",
        "state":66
     }
  ]
  </code></pre>
  
  <p>If I just create a serialize like so:</p>
  
  <pre><code>DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(List&lt;object&gt;))
  </code></pre>
  
  <p>I actually get an Int32 at position 0 and a String at position 1. However at position 2 I just get a null object.</p>
  
  <p>Does anyone know if what I am trying to do is even possible? I have no control over the structure of the JSON that I'm consuming. I'd like to accomplish this without using third party assemblies if possible.</p>