I have this JSON:
{
"result": {
"data": {
"getEstelam3Response": {
"return": {
"birthDate": "13650412",
"bookNo": "0",
"bookRow": [ "0" ],
"deathStatus": [ "0" ],
"family": "2K3Yp9is2YrYp9mG2Yo\u003d",
"fatherName": "2K3Zitiv2LE\u003d",
"gender": "1",
"message": "",
"name": "2LXYr9ix2Kc\u003d",
"nin": "3549970269",
"officeCode": "309",
"shenasnameNo": "442",
"shenasnameSerial": "0"
}
}
},
"status": {
"statusCode": 200,
"message": "OK"
}
},
"status": {
"statusCode": 200,
"message": "OK"
}
}
I want to get value of keys inside return.
This is my code:
var obj = JObject.Parse(responseBody);
string name = (string)obj.SelectToken("result[0].data[0].getEstelam3Response[0].return[0].birthDate[0]");
but when I write
Response.Write(name);
I get nothing.
I want all values inside result.
please help. much appreciated.