Hi,
I get this json response from my server:
[
{
"playername": "Player 1",
"score": "88678",
"fbusername": "John Wheeler",
"gamelevel": "1"
},
{
"playername": "Player 6",
"score": "71515",
"fbusername": "John Wheeler",
"gamelevel": "1"
},
{
"playername": "Player 8",
"score": "1836",
"fbusername": "John Wheeler",
"gamelevel": "1"
}
]
and I cannot figure out how to get all the items out of the array.
Dictionary<string, object> search = Json.Deserialize(w.text) as Dictionary<string, object>;
foreach ( KeyValuePair <string, object> entry in search)
{
Debug.Log("key: " + entry.Key + ", value:" + entry.Value);
// do something with entry.Value or entry.Key
}
I would appreciate any help or explanation.
John