tldr/pages/common/jc.md

21 lines
401 B
Markdown
Raw Normal View History

2020-06-04 16:05:17 +01:00
# jc
> Convert the output of multiple commands to JSON.
2020-06-04 16:05:17 +01: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:
`{{ifconfig}} | jc {{--ifconfig}} -p`
- Output pretty JSON via magic syntax:
`jc -p {{ifconfig}}`