27
I have a json string like,
{
"objectType": "Subscriber",
"objectList": [
{
"firstName": "name1",
"email": "email@example.com",
"address": "exampleAddress"
},
{
"firstName": "name2",
"email": "email2@example.com",
"address": "exampleAddress2"
}
]
}
I need to parse it in my C# code. I have tried,
JavaScriptSerializer json_serializer = new JavaScriptSerializer();
object routes_list = json_serializer.DeserializeObject(myjson here);
But I can't loop through the objectList array. How can it be done?