jc
A utility to convert the output of multiple commands to JSON. More information: https://github.com/kellyjonbrazil/jc.
{{ifconfig}} | jc {{--ifconfig}}
jc {{ifconfig}}
{{ifconfig}} | jc {{--ifconfig}} -p
jc -p {{ifconfig}}