Subject: Re: [ethtool v2 3/6] json_writer: Import the iproute2 helper code for JSON output

From: Stephen Hemminger <[email-masked]>
Date: Wed, 24 Jun 2020 22:33:53 -0700

On Thu, 25 Jun 2020 02:12:41 +0200
Andrew Lunn <[email-masked]> wrote:

> In general, Linux network tools use JSON for machine readable output.
> See for example -json for iproute2 and devlink. In order to support
> JSON output from ethtool, import the iproute2 helper code.
> 
> Maybe some time in the future it would make sense to either have a
> shared library, or to merge ethtool into the iproute2 source
> distribution?
> 
> Signed-off-by: Andrew Lunn <[email-masked]>

You might also want to borrow the json_print code that merges both
output formats.  Or not