Not sure what it is doing more...I'm referring to this rq:
https://github.com/dflemstr/rq#format-support-statusIt 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