-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON encoding of empty containers #54
Comments
We will ask Lada and check the YANG-JSON draft. |
I tend to agree with Rob. draft-ietf-netmod-yang-json defines |
In fact, I think all occurences of [null] should be replaced with {} |
This should not be changed because the JSON draft says an empty leaf is NULL On Thu, Mar 10, 2016 at 3:27 AM, Martin Bjorklund notifications@github.com
|
IMO, the yang-json draft gives you no guideline, because the terms leaf and empty are meant in the narrow sense, i.e. a leaf node and and empty type, as defined in YANG. What you have here are some containers whose contents are omitted. So I think you can choose whatever makes most sense. |
From Robert Wilton:
OLD:
The server might respond as follows:
NEW:
The server might respond as follows:
The text was updated successfully, but these errors were encountered: