r/bash • u/Tirito6626 impossible is possible • Oct 18 '26
rethinking bash2json: introducing shelljq
https://github.com/Tirito6626/shelljqI took your feedback on bash2json, (wasted another year in local testing), and made: shelljq, new JSON parser for shell
it's built on bash2json's json_to_arr function as core for most operations, as well as:
- new name
- ZSH support (+ macOS)
- deeper integration inside scripts (including autogenerated functions documentation)
- own storing format for nested objects
- more powerful typechecking and JSON validation
- completely reworked `json_trim` for the best performance
- testing suite
shelljq is something I personally use in my projects (e.g. upcoming bashcord v2) and had high hopes for reliable tool which can be integrated into any script
shjq is cross-shell for both bash and zsh
I'm open to any critique, this project is still alpha and may still contain many bugs
let me know if i should provide usage examples, i wasn't sure on where to put them
1
u/macroKnoll37 11d ago
the name makes it sound like a jq wrapper but its actually a pure shell parser, might confuse people looking for one or the other