Suppose I have this object here:
var jsonExample = {
"response":{
"result":{
"status":{
"name": "Eric"
}
}
}
}
Now I want to dynamically access a nested property:
var jsonKey = "response.result.status.name";
console.log("the status is: " + jsonExample[jsonKey]);
Can this be achieved somehow?