title: Deserializing JSON object into a C# list
body: <p>I'm trying to deserialize a given JSON file in C# using a <a href="http://www.billreiss.com/making-json-web-requests-easier-with-async-and-await/" rel="nofollow noreferrer">tutorial by Bill Reiss</a>. For XML data in a non-list this method works pretty well, though I would like to deserialize a JSON file with the following structure:</p>
  
  <pre><code>public class Data
  {
      public string Att1 { get; set; }
      public string Att2 { get; set; }
      public string Att3 { get; set; }
      public string Att4 { get; set; }
  }
  
  public class RootObject
  {
  
  public List&lt;Data&gt; Listname { get; set; }
  }
  </code></pre>
  
  <p>My problem is with using JSON.Net's ability to create / put data into lists, and then displaying the list on an XAML page. My idea so far (which is not working):</p>
  
  <pre><code>var resp = await client.DoRequestJsonAsync&lt;DATACLASS&gt;("URL");
  string t = resp.ToString();
  var _result = Newtonsoft.Json.JsonConvert.DeserializeObject&lt;List&lt;DATACLASS&gt;&gt;(t);
  XAMLELEMENT.ItemsSource = _result;
  </code></pre>