Hi,

the YANG/JSON draft is using some wording that confused me (Section 5.4.).

A list instance is encoded as a name/array pair, and the array
elements are JSON objects.

I would have expected it to say something like (judging by examples):

All entires of a list are encoded as a single name/array pair, where the
array elements are JSON objects representing individual list entries.

In RFC6020 (Section 7.8.).

The "list" statement is used to define an interior data node in the
schema tree.  A list node may exist in multiple instances in the data
tree.  Each such instance is known as a list entry.

Which suggests multiple instances of a list. Are you saying that, in JSON mapping, there can only be a single list instance?

The last paragraph in 5. also sounds suspicious:

Any data node instance is encoded as a name/value pair where the name
is formed from the data node identifier using the rules ofSection 4  
<https://tools.ietf.org/html/draft-ietf-netmod-yang-json-04#section-4>.
The value depends on the category of the data node as explained in
the following subsections.

Jernej
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to