I have a simple json string that my php file return to unity {"1":10,"2":25,"3":1,"4":124,"7":567} first number is the item id and 2nd is the amount.
I see in unity and c# unlike php that arrays are a fixed length so it seems that the best way is to parse into either a dictionary or list.
Anyone know the best way to parse this in 2020, not sure wether unity has its own json parser now or if you should use simpleJson and what would be the best way to store it.
I have a dictionary for the gameitems but not sure how to get the json string into it
Dictionary<int, int> Gameitems = new Dictionary<int, int>();