QuestionQ112

IP Services

What does line 2 represent within this JSON schema?

Question Image

  • A object
  • B value
  • C key
  • D array
Explanation

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.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!