> It'd be great if there was a "standard" environment variable to toggle JSON input/output on for apps.
Look at FreeBsd's libxo. It's supported by most of the base system.
Look at FreeBsd's libxo. It's supported by most of the base system.
(Not to diminish libxo --it looks pretty cool, and I didn't know about it before-- just curious.)
echo $somejson-jobspec | ifconfig
instead of ifconfig em0 inet 192.02.1/24 aliasBut given that it's there, I'll certainly consider it when writing tools, and consider supporting the command-line option/env var even if/when I don't use the implementation...