[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180306085711.65883625@xeon-e3>
Date: Tue, 6 Mar 2018 08:57:11 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: David Ahern <dsahern@...il.com>
Cc: netdev@...r.kernel.org, Stephen Hemminger <sthemmin@...rosoft.com>
Subject: Re: [PATCH iproute2-next 3/7] ip: add json support to ip rule
On Tue, 6 Mar 2018 09:51:29 -0700
David Ahern <dsahern@...il.com> wrote:
> NULL for detached value seems weird.
> [ {
> "priority": 998,
> "src": "all",
> "iif": "dummy2",
> "iif_detached": null,
> "table": "1"
> },
>
> Is that normal for json for fields that only exist when a value is true?
null is the best way to indicate a value with presence having a meaning.
Powered by blists - more mailing lists