JC – JSONifies the output of many CLI tools
kellyjonbrazil.github.io
JC – JSONifies the output of many CLI tools
1–10 of 136 posts
Re: JC – JSONifies the output of many CLI tools
#2Blog post with examples here: https://blog.kellybrazil.com/2020/08/30/parsing-command-outp...
Re: JC – JSONifies the output of many CLI tools
#3Re: JC – JSONifies the output of many CLI tools
#4Or pipe it into rq [2] to convert the format to yaml, toml etc.
[1]: https://stedolan.github.io/jq/tutorial/ [2]: https://github.com/dflemstr/rq#format-support-status
Re: JC – JSONifies the output of many CLI tools
#5Re: JC – JSONifies the output of many CLI tools
#6Re: JC – JSONifies the output of many CLI tools
#7I love it
Re: JC – JSONifies the output of many CLI tools
#8 dig +yaml google.comRe: JC – JSONifies the output of many CLI tools
#9Re: JC – JSONifies the output of many CLI tools
#10When 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.