I have a json like this
e.result = {
5474: {
name: "john",
last: "doe"
},
8471: {...},
...
}
I get the data this way
JObject o = JObject.Parse(e.Result);
foreach (JToken token in o)
{
Message.show((string)token.First["name"]);
}
That work’s fine, but i need to get the key in each iteration. Need to get the 5474 and 8471 values in this example.
Any idea?
1 Answer