This is awesome but keep in mind it’s not a clone of jq – jq is a language with functions, and modules etc.
https://github.com/fiatjaf/jiq Is a fork using libjq to support the entire feature set.
I’d love to see this but generalised to any functional optic. It would be awesome to be able to do the same with Haskell code like:
key "users" . _Array . ix 0 . key "name" . _String