From: Stephen Hemminger <sthem...@microsoft.com> The ip command implementation of JSON was very spotty. Only address and link were originally implemented. After doing route for next, went ahead and implemented it for a bunch of the other sub commands.
Hopefully will reach full coverage soon. Stephen Hemminger (12): ipneigh: add color and json support ipaddrlabel: add json support iprule: add json support ipntable: add json support ipnetconf: add JSON support tcp_metrics; make tables const tcp_metrics: add json support ipsr: add json support token: support JSON tuntap: support JSON output fou: break long lines fou: support JSON output v2: - fix output format for ip rule - break lines more compactly - add fou, token, tuntap, and sr sub-commands ip/ipaddrlabel.c | 40 ++++-- ip/ipfou.c | 56 +++++--- ip/ipneigh.c | 140 ++++++++++++------- ip/ipnetconf.c | 69 +++++----- ip/ipntable.c | 402 +++++++++++++++++++++++++++++-------------------------- ip/iprule.c | 184 ++++++++++++++----------- ip/ipseg6.c | 93 +++++++------ ip/iptoken.c | 18 ++- ip/iptuntap.c | 57 ++++++-- ip/tcp_metrics.c | 188 ++++++++++++++++---------- 10 files changed, 744 insertions(+), 503 deletions(-) -- 2.16.1