title: How to deserialize and use property of JSON Nested Arrays
body: <p>I'm making a <strong>C#</strong> project on Unity based on the card game Yu-Gi-Oh . I'm using this API: <a href="https://db.ygoprodeck.com/api-guide/" rel="nofollow noreferrer">https://db.ygoprodeck.com/api-guide/</a></p>
  <p>The API give access to all the cards of the game with their info (name, effect, ATK value) in a <strong>JSON</strong>. But before using this JSON, I'm working with a JSON in a <strong>txt</strong> file which is written with the same model as the API's , this way I don't make unnecessary requests to their servers until my project is done, and it's easier to test because the API contains thousands of cards, the JSON I'm currently experimenting with only contains 1 card.</p>
  <p>There it is:</p>
  <pre><code>{
     &quot;data&quot;:[
        {
           &quot;id&quot;:6983839,
           &quot;name&quot;:&quot;Tornado Dragon&quot;,
           &quot;type&quot;:&quot;XYZ Monster&quot;,
           &quot;desc&quot;:&quot;2 Level 4 monsters\nOnce per turn (Quick Effect): You can detach 1 material from this card, then target 1 Spell/Trap on the field; destroy it.&quot;,
           &quot;atk&quot;:2100,
           &quot;def&quot;:2000,
           &quot;level&quot;:4,
           &quot;race&quot;:&quot;Wyrm&quot;,
           &quot;attribute&quot;:&quot;WIND&quot;,
           &quot;card_images&quot;:[
              {
                 &quot;id&quot;:6983839,
                 &quot;image_url&quot;:&quot;https://storage.googleapis.com/ygoprodeck.com/pics/6983839.jpg&quot;,
                 &quot;image_url_small&quot;:&quot;https://storage.googleapis.com/ygoprodeck.com/pics_small/6983839.jpg&quot;
              }
           ]
        }
     ]
  }
  </code></pre>
  <p>I would like to get the <strong>name</strong> , the <strong>desc</strong> (description) , and the <strong>image_url</strong> of the card. I managed to display the <em>name</em> and the <em>description</em>  , however I don't know how I could get access to the <strong>image_url</strong> located in the second array of the JSON (<strong>card_image</strong> array) .</p>
  <p>There are my <strong>classes</strong>, and how I got to display the card name and desc:</p>
  <pre><code>public class Root
  {
    public Card[] data { get; set; }
  
  }
  
  public class Card
  {
    public int id { get; set; }
    public string name { get; set; }
    public string desc{ get; set; }
    public CardImage[] card_images { get; set; }
  }
  
  public class CardImage
  {
    public int id { get; set; }
    public string image_url { get; set; }
    public string image_url_small{ get; set; }
  }
  
  
  
  
  void Start()
  {
      string jsonString = File.ReadAllText(&quot;myTxtJson.txt&quot;);
      var cards = JsonHelper.FromJson&lt;Root&gt;(jsonString);
      
      foreach(Card card in cards.data)
      {
        Debug.Log(card.name); // Display the name of the card
        Debug.Log(card.desc);  // Display the effect of the card
      }
  
  }
  </code></pre>
  <p>The point would be (if possible) to have a &quot;simple&quot; access to the 3 properties I need which are <strong>card.name</strong>, <strong>card.desc</strong> and <strong>card.image_url</strong> . Thanks if you can help me, I'm new to OOP so sorry if there are big mistakes, I'll take any advices on the existing code as well.</p>