Re: [netmod] JSON encoding of anydata: approximating an operational leaf-list

Carsten Bormann <cabo@tzi.org> Mon, 21 February 2022 11:41 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 795243A0F0E for <netmod@ietfa.amsl.com>; Mon, 21 Feb 2022 03:41:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5BO8tsxp6PEt for <netmod@ietfa.amsl.com>; Mon, 21 Feb 2022 03:41:39 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0F5BC3A0FC1 for <netmod@ietf.org>; Mon, 21 Feb 2022 03:41:39 -0800 (PST)
Received: from smtpclient.apple (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K2L406QgqzDCd2; Mon, 21 Feb 2022 12:41:36 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <13b2c889-89f6-437b-b149-090bb9d144b7@cesnet.cz>
Date: Mon, 21 Feb 2022 12:41:36 +0100
Cc: netmod@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <0393E784-DEBF-4A1D-8882-3336951774D5@tzi.org>
References: <13b2c889-89f6-437b-b149-090bb9d144b7@cesnet.cz>
To: Jan Kundrát <jan.kundrat@cesnet.cz>
X-Mailer: Apple Mail (2.3693.60.0.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ynTvcLUmMRbFSA85MbSSroNwa18>
Subject: Re: [netmod] JSON encoding of anydata: approximating an operational leaf-list
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Feb 2022 11:41:54 -0000

> On 21. Feb 2022, at 11:44, Jan Kundrát <jan.kundrat@cesnet.cz> wrote:
> 
>   "p": {["0.003", "0.001", "0.001", "0.24", "0.37”]}

I read 7951 as saying that the value part of the anydata pair is a JSON object (map) with YANG names as keys.

"p": {“ietf-blub:blub”: ["0.003", "0.001", "0.001", "0.24", "0.37"]}

I have no idea how the YANG model hints at what keys you should be using there.

Grüße, Carsten