Re: [PATCH 05/27] ip: ipaddress.c: add support for json output

2017-08-07 Thread Stephen Hemminger
On Thu, 3 Aug 2017 17:54:53 +0200 Julien Fortin wrote: > From: Julien Fortin > > This patch converts all output (mostly fprintfs) to the new ip_print api > which handle both regular and json output. > Initialize a json_writer and open an array object if -json was specified. > Note that the JSO

[PATCH 05/27] ip: ipaddress.c: add support for json output

2017-08-03 Thread Julien Fortin
From: Julien Fortin This patch converts all output (mostly fprintfs) to the new ip_print api which handle both regular and json output. Initialize a json_writer and open an array object if -json was specified. Note that the JSON attribute naming follows the NETLINK_ATTRIBUTE naming. In many plac