title: Using JsonUtility.FromJson to deserialize JSON in Unity
body: <p>This is my sample JSON:</p>
  
  <pre><code>{"data":[{"id":141,"layoutLabel":"Sameer","hasCustomProb":1},
  {"id":214,"layoutLabel":"abc","hasCustomProb":0}],"status":200}
  </code></pre>
  
  <p>This is the class I made</p>
  
  <pre><code>[System.Serializable]
  public class PlayerInfo
  {
      public string [] data;
      public int status;
  }
  </code></pre>
  
  <p>This is how I get "status" from JSON: </p>
  
  <pre><code>PlayerInfo P = JsonUtility.FromJson&lt;PlayerInfo&gt;(json);
  Debug.Log(P.status) //returns 200
  </code></pre>
  
  <p>Can someone help me out can I get and save the data array or maybe get data.id and data.hasCustomProb? I am new to C# and unity. </p>