ListAndHash
martinfowler.com
martinfowler.com
Specter[1] provides something like this for Clojure, allowing rich navigation and transformation abilities to deeply nested structures.
[1]: http://nathanmarz.com/blog/functional-navigational-programmi...
I ended up creating a Python Library to perform key lookups on these deeply nested documents. For Example:
>>> from nested_lookup import nested_lookup
>>> document = [ { 'taco' : 42 } , { 'salsa' : [ { 'burrito' : { 'taco' : 69 } } ] } ]
>>> print(nested_lookup('taco', document))
[42, 69]
Check it out here: https://stedolan.github.io/jq/Also briefly looking at the docs, I don't see anywhere where this nested-lookup functionality exists.
I misunderstood what your library did. jq doesn't cover that - as far as I know, there are no recursive constructs in jq.
And incidentally, what a terrible name. A "hash" (really hash table) is a specific implementation of a map/dictionary. You shouldn't use "hash" to refer to a map based on search trees.