Subject: Re: [PATCH iproute2-next] tc: pedit: Support JSON dumping

From: Stephen Hemminger <[email-masked]>
Date: Wed, 22 Apr 2020 13:02:45 -0700

On Wed, 22 Apr 2020 20:06:15 +0300
Petr Machata <[email-masked]> wrote:

> +			print_string(PRINT_FP, NULL, ": %s",
> +				     cmd ? "add" : "val");
> +			print_string(PRINT_JSON, "cmd", NULL,
> +				     cmd ? "add" : "set");

Having different outputs for JSON and file here. Is that necessary?
JSON output is new, and could just mirror existing usage.