JSON Representation

VOSS and Fabric Engine support JSON format to represent the data resource. The following information describes the JSON representation for the YANG elements:

The following is an example of JSON representation.

{
    "openconfig-system:authentication":{
        "admin-user":{
          "config":{
            "admin-password": "********",
            "admin-password-encrypted": null },
          "state": {
            "admin-password": "********",
            "admin-password-encrypted": null },
            "admin-username": "rwa"
           }
          },
         "config":{
           "authentication-method": [
           "LOCAL“ ] 
          },
          "state": {
           "authentication-method": [
           "LOCAL“ ] 
          },
        "users": { "user": [{"config": {  
             "password": "********",
             "password-encrypted": null,
             "role": "read-write-all",
             "ssh-key": null,
             "username": "user1"},
           "state": {"password": "********",
                "password-encrypted": null,
                "role": "read-write-all",
                "ssh-key": null,
                "username": "user1“},
           "username": "user1"},{
           "config": {"password": "********",
                "password-encrypted": null,
                "role": "read-only",
                "ssh-key": null,
                "username": "ro"},
            "state": {"password": "********",
                 "password-encrypted": null,
                 "role": "read-only",
                 "ssh-key": null,
                 "username": "ro"},
             "username": "ro"}, {
             "config": {"password": "********",
                 "password-encrypted": null,
                 "role": "read-write",
                 "ssh-key": null,
                 "username": "rw"},
              "state": {
                 "password": "********",
                 "password-encrypted": null,
                 "role": "read-write",
                 "ssh-key": null,
                 "username": "rw"},
              "username": "rw"}, {
              "config": {
                  "password": "********",
                  "password-encrypted": null,
                  "role": "SYSTEM_ROLE_ADMIN",
                  "ssh-key": null,
                  "username": "rwa"},
               "state": {
                  "password": "********",
                  "password-encrypted": null,
                  "role": "SYSTEM_ROLE_ADMIN",
                  "ssh-key": null,
                  "username": "rwa"},
                "username": "rwa"}]}
         }
    }