#Yeah as FromJson looks at the class you
1 messages · Page 1 of 1 (latest)
hello once again, I apologize if I am disturbing you
but I have created or atleast tried to create some classes which contained that info, but I still do get 0
public class Item
{
public int rank { get; set; }
public string member_id { get; set; }
public int score { get; set; }
public Player player { get; set; }
public string metadata { get; set; }
}
public class Pagination
{
public int total { get; set; }
public int next_cursor { get; set; }
public object previous_cursor { get; set; }
}
public class Player
{
public string name { get; set; }
public int id { get; set; }
public string public_uid { get; set; }
}
public class Root
{
public Pagination pagination { get; set; }
public List<Item> items { get; set; }
}
As far as I remember, with JsonUtility these shouldn't be properties, but public fields. If you switched to another serializer in the meantime, disregard this message
well, I was able to get it working through a more complicated way