jc(1) | JSON CLI output utility | jc(1) |
jc - JSONifies the output of many CLI tools and file-types
COMMAND | jc PARSER [OPTIONS]
or magic syntax:
jc [OPTIONS] COMMAND
jc JSONifies the output of many CLI tools and file-types for easier parsing in scripts. jc accepts piped input from STDIN and outputs a JSON representation of the previous command's output to STDOUT. Alternatively, the "magic" syntax can be used by prepending jc to the command to be converted. Options can be passed to jc immediately before the command is given. (Note: command aliases are not supported).
Parsers:
Options:
Example: ls -al | jc --ls -p
or using the magic syntax:
jc -p ls -al
2021-01-05 | 1.14.3 |