2020-06-04 08:05:17 -07:00
|
|
|
# jc
|
|
|
|
|
2024-04-25 19:58:21 -03:00
|
|
|
> Convert the output of multiple commands to JSON.
|
2020-06-04 08:05:17 -07:00
|
|
|
> More information: <https://github.com/kellyjonbrazil/jc>.
|
|
|
|
|
|
|
|
- Convert command output to JSON via pipe:
|
|
|
|
|
|
|
|
`{{ifconfig}} | jc {{--ifconfig}}`
|
|
|
|
|
|
|
|
- Convert command output to JSON via magic syntax:
|
|
|
|
|
|
|
|
`jc {{ifconfig}}`
|
|
|
|
|
|
|
|
- Output pretty JSON via pipe:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`{{ifconfig}} | jc {{--ifconfig}} {{[-p|--pretty]}}`
|
2020-06-04 08:05:17 -07:00
|
|
|
|
|
|
|
- Output pretty JSON via magic syntax:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`jc {{[-p|--pretty]}} {{ifconfig}}`
|