3 ms·
They won't. In fact it is already implemented. Try `ip -json addr`. Not all subcommands support it though.
by sdfgdfhjdgj 8y ago
They won't. In fact it is already implemented.
Try `ip -json addr`.
Not all subcommands support it though.
- rascul 8y agoWhich version has implemented this? It's not available here. rascul@coyote:~$ ip -json addr Option "-json" is unknown, try "ip -help". rascul@coyote:~$ ip -V ip utility, iproute2-ss160111
- rascul 8y agoLooks like it was added in August of last year. Obviously newer than what my distribution has. https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=5df607725928d532a3b7e5095c04e943b2c3ce7f https://git.kernel.org/pub/scm/network/iproute2/iproute2.git...
- twic 8y agoThere's another universe near ours where libxo caught on widely, and every command supports text and JSON output out of the box: https://juniper.github.io/libxo/libxo-manual.html https://juniper.github.io/libxo/libxo-manual.html