title: Deserialize to Object with a List
body: <p>Im trying to parse an JSON response string to my class objects.. I can't figure this out and i  need some help with this.</p>
  
  <p>I use the json.net reference but i cant't find what i'm looking for :(</p>
  
  <p>my json:</p>
  
  <pre><code>{
  
  "@companyName": "Company Name",
  "@version": "1.0",
  "@generatedDate": "3/1/10 2:10 PM",
  "application": [
      {
          "@name": "Application #1 name",
          "@apiKey": "1234",
          "@createdDate": "2010-03-01",
          "@platform": "Platform name"
      },
      {
          "@name": "Application #1 name",
          "@apiKey": "1234",
          "@createdDate": "2010-03-01",
          "@platform": "Platform name"
      }
  ]
  }
  </code></pre>
  
  <p>my root class for the json is:</p>
  
  <pre><code>public class RootObject
  {
      [JsonProperty]
      public string companyName { get; set; }
  
      [JsonProperty]
      public string version { get; set; }
  
      [JsonProperty]
      public string generatedDate { get; set; }
  
      [JsonProperty]
      public List&lt;Application&gt; application { get; set; }
  }
  </code></pre>
  
  <p>my sub class (list of applications):</p>
  
  <pre><code>public class Application
  {
      [JsonProperty]
      public string name { get; set; }
  
      [JsonProperty]
      public string apiKey { get; set; }
  
      [JsonProperty]
      public string createdDate { get; set; }
  
      [JsonProperty]
      public string platform { get; set; }
  }
  </code></pre>
  
  <p>To parse it i have the following code now:</p>
  
  <pre><code>      JObject obj = JObject.Parse(e.Result);
        applications = new RootObject
              {
                  companyName = (string) obj["companyName"],
                  version = (string) obj["version"],
                  generatedDate = (string) obj["generatedDate"],
                  application = ???????? (how to make a list here?)
  
              }
  </code></pre>
  
  <p>Thanks in advance!</p>