Here is my object:
obj = {
"FirstName": "Fawad",
"LastName": "Surosh",
"Education": {"University": "ABC", "Year": "2012"}
}
Here is my node.js code:
var nodeName = 'Education.Year';
obj.nodeName; //this should return the value of Year which is '2012'
Is there any way for implementing this solution? It is because my nodeName is extracted from db table and is not specific.