I've put together the following code from this answer:
JArray jsonArray = JArray.Parse(json);
foreach(JObject jsonObject in jsonArray.Children<JObject>())
{
foreach(JProperty jProperty in jsonObject.Properties())
{
int id = jProperty.id;
string name = (string)jProperty.Name;
textBox1.AppendText(id.ToString() + " // " + name + Environment.NewLine);
}
}
A sample of the JSON I'm trying to parse is as following:
[{"id":"219","name":"Jimmy"},{"id":"220","name":"Bobby"},{"id":"218","name":"Arthur"}]
The answer I referenced deals with parsing key => value pairs, how can I parse an associative array?
219(or"219"). You could deserialize to get at the data more easily especially since you appear to be consuming all of it