I am trying to read json object contain some values in JsonArray using Json.NET library. I want to get each array value into variables. Following is the Json String. Please guide, thanks.
{"enad_list":
[{
"et_cnic":"1090202369011",
"et_name":"Its me",
"et_father_husband_name":"My father name",
"et_present_add":"Its my address",
"et_permanent_add":"Its my another address ",
"et_date_of_birth":"10-9-1982",
"et_birth_place":"My Birth place",
"et_expiry_date":"2020-12-15"
}]
}
Edit: So far i have tried this code and getting an error. Please see image for error
string jsonData =@"{""enad_list"":[{""et_cnic"":""1090202369011"",""et_name"":""Its me""}]}";
dynamic jsonData = JObject.Parse(abc.ToString());
int cnic = jsonData.enad_list.et_cnic;