JSON Representation

The ICX platform supports JSON format to represent the resource. The YANG elements in the resource models are mapped into JSON elements for the proper serialization.

  • A leaf element is mapped into a single key-value pair. The key and the value are separated by a colon.
  • A container element is mapped into a JSON object. Therefore, the equivalent representation of a container starts with a left curly bracket and ends with a right curly bracket. The elements within the container are separated with a comma.
  • A list element is mapped into a JSON array. Therefore, the equivalent representation of the list starts with a left square bracket and ends with a right square bracket. The instances of the list element are separated by a comma.