In the given JSON schema, what does line 2 represent?
Choose an answer
Tap an option to check your answer.
Correct answer: object.
Why this is the answer
Line 2, {, signifies the beginning of a JSON object. In JSON, an object is an unordered collection of key-value pairs. It starts with an opening curly brace { and ends with a closing curly brace }. Each key-value pair within an object is separated by a comma, and the key and value are separated by a colon. Incorrect options: value: A value is the data associated with a key, but line 2 itself defines the structure that will contain key-value pairs, not a value itself. key: A key is a string that uniquely identifies a value within an object, but line 2 is not a key. array: An array in JSON is an ordered collection 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