How to convert all elements as key value pair in json. EX :
{
"Id": " 357342524563456678",
"title": "Person",
"language": "eng",
"questionAnswer": [
{
"4534538254745646.1": {
"firstName": "Janet",
"questionNumber": "1.1"
}
}
]
}
For this i need key value pair for id,title,language including firstname and questionnumber.
foreach (KeyValuePair<string, JToken> sourceProperty in Response)
{}
This code giving id,titile,language,questionanswer as key value pair, but firstname and questionnumber also required as key value pair for some compariosn. Thanks in Advance.