]> git.proxmox.com Git - mirror_iproute2.git/commit
json: make pretty printing optional
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 8 Feb 2018 16:26:22 +0000 (08:26 -0800)
committerDavid Ahern <dsahern@gmail.com>
Sat, 10 Feb 2018 16:15:08 +0000 (08:15 -0800)
commita233caa0aaee44acd09e4c27ae32511939eab243
treeadfa4efa81f2c3d16c45cbbe29845906ba009788
parentdb2b8b6ef0a27480deb7329f888fa5218fe67907
json: make pretty printing optional

Since JSON is intended for programmatic consumption, it makes
sense for the default output format to be concise as possible.

For programmer and other uses, it is helpful to keep the pretty
whitespace format; therefore enable it with -p flag.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
include/json_print.h
ip/ip.c
lib/json_print.c
tc/tc.c