corenova / yang-js

YANG parser and composer
Apache License 2.0
56 stars 18 forks source link

Empty string "" value is missing in toJSON() returning data #99

Closed quantang closed 5 years ago

quantang commented 5 years ago

For the data given as follows:

    "at-network-topology-v1:node-extra-attributes": [
        {
            "name": "model",
            "display-name": "MODEL",
            "value": "",
            "priority": "high"
        }
    ]

The toJSON() returned as follows:

    "at-network-topology-v1:node-extra-attributes": [
      {
        "at-network-topology-v1:name": "model",
        "at-network-topology-v1:display-name": "MODEL",
        "at-network-topology-v1:priority": "high"
      }
    ],

The "value" attribute is not included in the output.