commands.sh

jc

all

Convert the output of multiple commands to JSON.

More info →

Options (1)

-p, --prettyboolean

Output pretty JSON via pipe

Example: {{ifconfig}} | jc {{--ifconfig}} {{[-p|--pretty]}}

Examples (4)

Convert command output to JSON via pipe

ifconfig | jc --ifconfig

Convert command output to JSON via magic syntax

Output pretty JSON via pipe

ifconfig | jc --ifconfig [-p|--pretty]

Output pretty JSON via magic syntax

jc [-p|--pretty] ifconfig
made by @shridhargupta | data from tldr-pages