In the JSON snippet, what does line 2 represent?
Choose an answer
Tap an option to check your answer.
Correct answer: object.
Why this is the answer
In JSON, data is structured as key-value pairs. Line 2, "{", signifies the beginning of an object. An object is an unordered collection of key-value pairs, enclosed in curly braces. Each key within an object must be a string, followed by a colon, and then its associated value. "Value" is incorrect because a value is the data associated with a key (e.g., "John Doe" or 30), not the curly brace itself. "Key" is incorrect because a key is the identifier for a value (e.g., "name" or "age"). "Array" is incorrect because an array is an ordered list of values, enclosed in square brackets, not curly braces.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed