Node.js: variable to act as nested element name for an object
<p>Here is my object:</p>

<pre><code>    obj = {
      "FirstName": "Fawad",
      "LastName": "Surosh",
      "Education": {"University": "ABC", "Year": "2012"}
    }
</code></pre>

<p>Here is my node.js code:</p>

<pre><code>var nodeName = 'Education.Year';
obj.nodeName; //this should return the value of Year which is '2012'
</code></pre>

<p>Is there any way for implementing this solution? It is because my nodeName is extracted from db table and is not specific. </p>