libubox merge requestshttps://code.fe80.eu/openwrt/libubox/-/merge_requests2023-04-15T13:06:49Zhttps://code.fe80.eu/openwrt/libubox/-/merge_requests/1jshn.sh: Add pretty-printing to json_dump2023-04-15T13:06:49ZAlexander Couzenslynxis@fe80.eujshn.sh: Add pretty-printing to json_dumpIf a JSON file might be read by a human, say for debugging, it
could be useful to pretty-print it. We do this in places by
calling "json_dump -i" but it shouldn't be necessary to know the
arguments to "jshn" (and indeed, that's not port...If a JSON file might be read by a human, say for debugging, it
could be useful to pretty-print it. We do this in places by
calling "json_dump -i" but it shouldn't be necessary to know the
arguments to "jshn" (and indeed, that's not portable if we retool
the underlying implementation). Conversely output that's ephemeral
doesn't need to be pretty (say being piped as input to another
command).
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>