title: JSON to Devexpress Winforms LookUpEdit Control
body: <p>My JSON file content like this:</p>
  
  <pre><code>{
    01: "One",
    02: "Two",
    03: "Three",
    04: "Four",
    05: "Five",
    06: "Six",
    07: "Seven",
    08: "Eight",
    09: "Nine",
    10: "Ten"
  }
  </code></pre>
  
  <p>And I am using <code>Newtonsoft.Json</code> library. I tried like this:</p>
  
  <pre><code>    var json = File.ReadAllText(@"numbers.json");
      var array = JObject.Parse(json);
      lookUpEdit1.Properties.DropDownRows = array.Count &gt; 10 ? 10 : array.Count;
      lookUpEdit1.Properties.DisplayMember = "Key";
      lookUpEdit1.Properties.ValueMember = "Value";
      lookUpEdit1.Properties.DataSource = array.ToList();
      lookUpEdit1.Properties.Columns.Add(new LookUpColumnInfo("Key"));
  </code></pre>
  
  <p>It gives an error like this: <code>'JObject' does not contain a definition for 'ToList' and no extension method 'ToList' accepting a first argument of type 'JObject' could be found (are you missing a using directive or an assembly reference?)</code></p>
  
  <p>How can I fiil the Devexpress Winforms LookUpEdit from JSON
   file?</p>