title: Read a value of an object by its parent's index
body: <p>Say I have this json:</p>
  <pre class="lang-json prettyprint-override"><code>&quot;myObject&quot; : {
    &quot;trans&quot;: {
      &quot;somekey&quot;: {
        &quot;name&quot;: &quot;i want this value&quot;
      }
    }
  }
  </code></pre>
  <p>How can I access &quot;i want this value&quot; without knowing the name of &quot;somekey&quot;?</p>
  <p>After reading <a href="https://stackoverflow.com/a/11922384/13084463">this</a>, I understood it can be done with indexing:</p>
  <pre><code>myObject.trans[0].name
  </code></pre>
  <p>But I am getting an <code>undefind</code>. Why is that?</p>