News for hackers. Stuff that matters.
Re:Shell Script Best Practices, from a decade of scripting t... by synergy20 on Thursday October 27, 2022 @09:11AM (#33356960)
new to 'rq', it's not in active development, any other alternatives? it seems doing a lot other than convert structured data to json.
Re:Shell Script Best Practices, from a decade of scripting t... by ducktective on Thursday October 27, 2022 @09:39AM (#33357310)
Not sure what it is doing more...I'm referring to this rq: https://github.com/dflemstr/rq#format-support-status

It converts to/from the listed formats.

There is also `jc` (written in Python) with the added benefit that it converts output of many common unix utilities to json. So you would not need to parse `ip` for example.

https://github.com/kellyjonbrazil/jc#parsers

Re:Shell Script Best Practices, from a decade of scripting t... by charsi on Friday October 28, 2022 @01:05AM (#33367883)
Also look at `yq` - https://github.com/mikefarah/yq

This is a wrapper to jq that also supports yaml and other file formats.