liveBook · Manning

Name-value pair

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

A JSON key-value pair associates a quoted property name with a JSON value using a colon separator.

A name-value pair associates a quoted JSON property name with a JSON value using a colon. The value may be a string, number, Boolean, null, object, or array. section 24.2 section 24.2.2

Apply these JSON rules when reading or checking an object:

Reading an interface object

In {"interface_name":"GigabitEthernet1/1","is_up":true,"speed":1000,"description":null}, "interface_name" maps to a string, "is_up" to a Boolean, "speed" to a number, and "description" to null. section 24.2

{
  "device": {                                #1
    "name": "R1",                            #1
    "vendor": "Cisco",                       #1
    "model": "1101"                          #1
  },                                         #1
  "interface_config": {                      #2
    "interface_name": "GigabitEthernet1/1",  #2
    "is_up": true,                           #2
    "ipaddress": "192.168.1.1",              #2
    "netmask": "255.255.255.0",              #2
    "speed": 1000,                           #2
    "description": null                      #2
  }                                          #2
}

Inspect the nested object example to distinguish outer pairs such as "device" from the inner pairs contained in their object values. section 24.2.2

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Defines pair syntax, permitted values, nesting, ordering, whitespace, and common invalid forms without requiring full RFC detail.
Examples
Uses interface data, nested device configuration, and malformed objects to test pair interpretation and punctuation.
What it assumes
Assumes basic JSON reading while teaching object structure, primitive types, nesting, and punctuation explicitly.
What you can do after
Evaluate JSON objects, identify each name-value association, and diagnose missing, misplaced, or invalid separators.
How it connects
Connects JSON objects, JSON values, nested objects, arrays, data serialization, and REST APIs.

Also explained in

Compare how 11 books explain name-value pair →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.