Which JSON data type is an unordered set of attribute-value pairs?
Choose an answer
Tap an option to check your answer.
Correct answer: object.
Why this is the answer
The correct answer is object. In JSON, an object is an unordered collection of key-value pairs, where keys are strings and values can be any valid JSON data type (string, number, boolean, null, array, or another object). This structure is analogous to dictionaries in Python or hash maps in other programming languages, allowing for the representation of complex data entities with named attributes. String is incorrect because it represents a sequence of characters, not a collection of pairs. Array is incorrect because it is an ordered list of values, not an unordered set of key-value pairs. Boolean is incorrect because it represents a true or false value, not a data structure for collections.
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