{
'AddUpdateResult': {
"Patient": "24919"
}
}
Here is a part of my response, The problem i am facing is the JSON response i am getting is dynamic and i need to parse it. In another scenario, i get something like this.
{
'EditUpdateResult': {
"Patient": "24919"
}
}
When i try something like this, i get "Cannot read property Patient from null" and the reason is its expecting "EditUpdateResult".
json.AddUpdateResult.Patient
How can i access the key's dynamically. Like... json.whatever.Patient, so that it may AddUpdateResult or EditUpdateResult
'characters.