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.
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