Ok, I've just hacked a version of this that uses jq[0] underneath, so you can do all the sorts of fancy queries jid originally doesn't support: https://github.com/fiatjaf/jiq
In less that 24 hours since the post, you've managed to shoehorn jq in (looks like about 6 hours of work from commits). Nice work! Really shows the power of OSS.
[0]: https://stedolan.github.io/jq/manual/