jc
A utility to convert the output of multiple commands to JSON. 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}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.