HACKER Q&A
📣 manikandaraj

Will we ever get JSON output for bash commands?


JSON has become a standard data interchange format now and almost all HTTP APIs operate using JSON. If we have JSON as output for bash commands, I think we can pass it to HTTP APIs or even use a CLI tool like JQ for json processing.


  👤 mtmail Accepted Answer ✓
The jc tool (https://github.com/kellyjonbrazil/jc#readme) will convert bash command output to JSON. It needs parsers for each command though.

https://jc-web-demo.herokuapp.com has a list of supported commands.


👤 HannieVerbeek
I certainly hope not! JSON is another flavor-of-the-month format, just like XML before it. I really wish people would stop messing with perfectly working software just to make it different. It almost never makes it better, on the contrary.

👤 ohiovr
Bash is my favorite hammer in the box too :D