I am using the Newtonsoft JSon c# plugin. I jave a JArray
{"data":[{"name":"Wesley 1","id":"616611941"},{"name":"Wesley 2","id":"100000138033375"},..............
I was wondering is there a way to loop though each object between the curly braces and extract the name and id of each entry?
Thanks to anyone who can help
using jQuery you can do this. First loop will go thorough each item in array. second loop will get the key, value in each array item
EDIT
OK. You got some good answers from others. Here is another way.
namespace
You add strongly typed class that maps data in the json
then you call
You can loop through the WordList to get the name, id values