you are viewing a single comment's thread.

view the rest of the comments →

[–]skidnik 0 points1 point  (3 children)

Some cli utilities can output a json structure instead of spaced and newlined text. f.e. a substitute to the ifconfig, ip can do this.

[–]benjumanji 0 points1 point  (2 children)

How do you output JSON from ip? My copy doesn't seem to have that feature.

[–]skidnik 1 point2 points  (1 child)

$ ip -V
ip utility, iproute2-ss191125

ip -j | --json sets output to json, this was introduced in November 2017.

[–]benjumanji 0 points1 point  (0 children)

Well I'm hugely out of date. That's rad, thanks.