title: Is there a way to convert a JSON to C# class who have a List<Object> as a parameter?
body: <p>Is there a way in Unity to parse JSON string to a C# class that have a list of -  lets suppose - string?</p>
  
  <p>I have an application that get a lot of data from a server. That data comes in a JSON and it have a lot of fields. Some fields have another array in it (I know the ones who have an array inside and the ones who don't).</p>
  
  <p>Knowing this I want to make it into a class so I can access it's parameters, [I can't create an array and try to access - for example - arr[0], because arr[0] may not be the field that I want - given that the array positions can change, but the field-key (or field-field-key if the array have an array inside) value will not]</p>
  
  <pre><code>{
    "success": "1",
    "menus": [
      {
        "id_menu": "506",
        "nome": "Blog",
        "tipo": "blog"
      },
      {
        "id_menu": "510",
        "nome": "Sobre",
        "tipo": ""
      },
      {
        "id_menu": "2407",
        "nome": "(Projeto Quatro Artes)",
        "tipo": ""
      },
      {
        "id_menu": "2603",
        "nome": "(Loja)",
        "tipo": ""
      },
      {
        "id_menu": "2687",
        "nome": "(Material NA)",
        "tipo": ""
      },
      {
        "id_menu": "2818",
        "nome": "(Forms)",
        "tipo": ""
      },
      {
        "id_menu": "2826",
        "nome": "(PHP+PIZZA)",
        "tipo": ""
      },
      {
        "id_menu": "7728",
        "nome": "(Image)",
        "tipo": ""
      },
      {
        "id_menu": "3239",
        "nome": "(jc)",
        "tipo": ""
      },
      {
        "id_menu": "6024",
        "nome": "(assinatura)",
        "tipo": ""
      }
    ]
  }
  </code></pre>
  
  <p>The code above is one of the JSONS that I want to parse, and the code below is the class that I made to parse it. Now i just need to know how to do it.</p>
  
  <pre><code>[System.Serializable]
  public class Menu
  {
      public string id_menu { get; set; }
      public string nome { get; set; }
      public string tipo { get; set; }
  }
  
  [System.Serializable]
  public class Return
  {
      public string success { get; set; }
      public List&lt;Menu&gt; menus { get; set; }
  }
  </code></pre>
  
  <p>I know that JsonUtility.FromJson() can do the job if there isn't any lists, but with lists it just doesn't work
  Also, trying to use JSONObject from Unity assets also doesn't work because I can't access return.menus.tipo (as an example) because it doesn't have an associative index.</p>