Live data from Hacker News

JC – JSONifies the output of many CLI tools

kellyjonbrazil.github.io

1–10 of 136 posts

Re: JC – JSONifies the output of many CLI tools

#8
Last year I looked for JSON output with the dig command on Linux but found the yaml option while reading the man page. It was handy. I always wondered why yaml/JSON output is not standard with Linux and Unix utilities for scripting needs. Anyway:

     dig +yaml google.com

Re: JC – JSONifies the output of many CLI tools

#9
Been using this a while to pull out a bunch of server stats for a monitoring dashboard and it's been great. I just wish there were more supported services. The total mess of different outputs and config types for Linux packages is extremely annoying to deal with.

Re: JC – JSONifies the output of many CLI tools

#10
Didn't know about this, the HN dividend pays out again!

When wrestling with sed/awk in trying to parse results of a shell command, I've often thought that a shell-standard, structured outpout would be very handy. Powershell[0] has this, but it's a binary format - so not human-readable. I want something in the middle: human- and machine-readable. Without either having to do parsing gymnastics.

jc isn't quite that shell standard, but looks like it goes a long way towards it. And, of course, when JSON falls out of fashion and is replaced by , `*c` can emerge to fill the gap. Nice.

[0]: https://learn.microsoft.com/en-us/powershell/

Post reply on HN