Using JsonUtility.FromJson to deserialize JSON in Unity Using JsonUtility.FromJson to deserialize JSON in Unity json json

Using JsonUtility.FromJson to deserialize JSON in Unity


Your class should look like this

[System.Serializable]public class PlayerInfo{    public List<ActData> data;    public int status;}[System.Serializable]public class ActData{    public int id;    public string layoutLabel;    public int hasCustomProb;}