O'Reilly logo
  • Abid Ghufran thinks this is interesting:

{
  "hostname": "CORESW01",
  "vendor": "Cisco",
  "isAlive": true,
  "uptime": 123456,
  "users": {
    "admin": 15,
    "storage": 10,
  },
  "vlans": [
    {
      "vlan_name": "VLAN30",
      "vlan_id": 30
    },
    {
      "vlan_name": "VLAN20",
      "vlan_id": 20
    }
  ]
}

From

Cover of Network Programmability and Automation

Note

This line should be as follows:
"storage": 10
If used as it is, python script will through an error.