I have a json string which starts like this:
{ "0" :
{"Jquery77768" :
{"nodeData":
{"id":32, "name": "Bob"}
----
I need to get the value which is there in the id
key.
I tried to do something like this:
var obj = JSON.parse(myJsonString);
var myID = obj[0].Jquery77768.nodeData.id;
but this does not work. Also the second node name Jquery77768
is dynamic and will change every time.
How can I get the value of the id
field?