Hacker News new | ask | show | jobs
by emmanueloga_ 1688 days ago
... although, it seems neither JSONIq nor jq contain a "parent" operator, as far as I can tell.
2 comments

This might be too restricting regarding the storage.

But we have a function: https://github.com/sirixdb/brackit

Not that not having it makes either of them any less powerful. If you descend to an inner context, you can refer to the parent/ancestor via a variable you can set before-hand.