I&#x27;ve thought about this topic a lot recently. Many times I find myself working with API endpoints which return deeply nested JSON or XML &quot;documents&quot; which I have no real desire to learn their schema. (AWS and ElastiSearch)<p>I ended up creating a Python Library to perform key lookups on these deeply nested documents.  For Example:<p><pre><code>    &gt;&gt;&gt; from nested_lookup import nested_lookup

    &gt;&gt;&gt; document = [ { &#x27;taco&#x27; : 42 } , { &#x27;salsa&#x27; : [ { &#x27;burrito&#x27; : { &#x27;taco&#x27; : 69 } } ] } ]

    &gt;&gt;&gt; print(nested_lookup(&#x27;taco&#x27;, document))
    [42, 69]
</code></pre>
Check it out here:<p>* <a href="https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;nested-lookup" rel="nofollow">https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;nested-lookup</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;russellballestrini&#x2F;nested-lookup" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;russellballestrini&#x2F;nested-lookup</a>