Access JSON data with string path?
<pre><code>var give = 'i.want.it';

var obj = {
    i: {
        want: {
            it: 'Oh I know you do...'
        }
    }
};

console.log(obj[give]); // 'Oh I know you do...'
</code></pre>

<p>Can I somehow get the object string using a path String of some sort? I'm trying to store a relationship in a database where the field it can't be in it's own document.</p>