title: Javascript/JSON get path to given subnode?
body: <p>How would you get a JSON path to a given child node of an object?</p>
  
  <p>E.g.:</p>
  
  <pre><code>var data = {
      key1: {
          children: {
              key2:'value',
              key3:'value',
              key4: { ... }
          }, 
      key5: 'value'
  }
  </code></pre>
  
  <p>An variable with a reference to key4 is given. Now I'm looking for the absolute path:</p>
  
  <pre><code>data.key1.children.key4
  </code></pre>
  
  <p>Is there any way to get this done in JS?</p>
  
  <p>Thank you in advance.</p>