title: Json get item from array in an array C# Xamarin
body: <p>I have the following class for my Json data I receive:</p>
  
  <pre><code>[JsonObject(MemberSerialization.OptIn)]
  public class OrderInfoResult
  {
      [JsonProperty("ok")]
      public Boolean OK { get; set; }
      [JsonProperty("menu")]
      public List&lt;Menu&gt; Menu { get; set; }
  }
  public class Menu
  {
      [JsonProperty("id")]
      public string Id { get; set; }
      [JsonProperty("name")]
      public string Name { get; set; }
      [JsonProperty("icon-url")]
      public string IconUrl { get; set; }
      [JsonProperty("items")]
      public List&lt;Menu&gt; Items { get; set; }
  }
  public class Items
  {
      [JsonProperty("id")]
      public string Id { get; set; }
      [JsonProperty("name")]
      public string Name { get; set; }
      [JsonProperty("description")]
      public string Description { get; set; }
      [JsonProperty("icon-url")]
      public string IconUrl { get; set; }
      [JsonProperty("price")]
      public int Price { get; set; }
  }
  </code></pre>
  
  <p>I try to get the items inside the Menu, so far I could reach lets say Name of a Menu without a problem by using a foreach loop, but when I do a foreach inside a foreach I can't reach the Item itself.</p>
  
  <p>I have to following loop:</p>
  
  <pre><code>foreach (var desoi in deserializedOrderInfo.Menu)
  {
    foreach (var desoiItem in desoi.Items)
    {
      var clickableBoxv = new RoundedBackgroundBoxView
      {
        CornerRadius = 6,
        Margin = new Thickness(0, 5, 0, 5),
        Index = HttpUtility.HtmlDecode(desoiItem.Id),
        Name = HttpUtility.HtmlDecode(desoiItem.Name),
        Price = HttpUtility.HtmlDecode(desoiItem.Price),
      };
    }
  }
  </code></pre>
  
  <p>Using this I get the error that there is no "Price" in Menu, while I thought that "desoiItem" would be the Items list, not the Menu List.</p>
  
  <p>How can I use the info inside the Items Class?</p>