What does line 2 represent within this JSON schema?
In JSON, an object is an unordered set of name/value pairs enclosed in curly braces { }. Line 2 of the exhibit is a complete brace-enclosed grouping of key/value pairs (such as "switch" and "port"), which by definition is an object. The names before each colon are individual keys, but the line taken as a whole represents an object; the surrounding square brackets [ ] on the outer lines form the array. This differs from the similarly worded question that asks specifically what the word "switch" represents, whose answer is key.
Community Discussion