title: Deserialize JSON array(or list) in C#
body: <p>here is the basic code:</p>
  
  <pre><code>public static string DeserializeNames()
  {
  
      jsonData = "{\"name\":[{\"last\":\"Smith\"},{\"last\":\"Doe\"}]}";
  
      JavaScriptSerializer ser = new JavaScriptSerializer();
  
      nameList myNames = ser.Deserialize&lt;nameList&gt;(jsonData);
  
      return ser.Serialize(myNames);
  }
  
  //Class descriptions
  
  public class name
  {
  
     public string last { get; set; }
  
  }
  
  public class nameList
  {
  
     public List&lt;name&gt; { get; set; }
  
  }
  </code></pre>
  
  <p>I have tried:</p>
  
  <pre><code>nameList myNames = ser.Deserialize&lt;nameList&gt;(jsonData);
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>List&lt;name&gt; myNames = ser.Deserialize&lt;List&lt;name&gt;&gt;(jsonData);
  </code></pre>
  
  <p>and neither work.  Anyone have any ideas?</p>