A JSON number represents a numeric value without surrounding double quotes, such as 5 or 101.25. Double quotes change the value into a string, so "5" is not a JSON number. section 24.2.1
Recognize the type
In {"speed": 1000}, speed has a JSON number value. In {"port": "22"}, port has a string value despite containing digits. This distinction is a common exam trap. section 24.2.1 section 24.2.3
{
"interface_name": "GigabitEthernet1/1", #1
"is_up": true, #2
"ip_address": "192.168.1.1", #3
"netmask": "255.255.255.0", #4
"speed": 1000, #5
"description": null #6
}
Inspect speed: its unquoted value 1000 is numeric, while the quoted interface, address, and mask values are strings. section 24.2.1
JSON uses numbers as one of four primitive data types. Numbers can appear as values within objects or arrays and support data exchanged by applications and REST APIs. section 24.4
