200-301 · Question #1548
Refer to the exhibit. Which type of JSON data is represented?
The correct answer is B. array. The JSON data structure represented by square brackets [] is an array, which is an ordered collection of values.
Question
Refer to the exhibit. Which type of JSON data is represented?
Options
- Anumber
- Barray
- Cobject
- Dstring
How the community answered
(59 responses)- A3% (2)
- B95% (56)
- C2% (1)
Why each option
The JSON data structure represented by square brackets `[]` is an array, which is an ordered collection of values.
A number in JSON is a simple numerical value (e.g., 123, 3.14), not a structured collection defined by brackets.
In JSON, square brackets `[]` explicitly denote an array, which is an ordered sequence of zero or more values. Each value within the array can be of any valid JSON data type.
An object in JSON is represented by curly braces `{}` and contains unordered key-value pairs, unlike an array.
A string in JSON is a sequence of characters enclosed in double quotes (e.g., "example"), not a bracketed collection.
Concept tested: JSON data types and structures
Source: https://www.json.org/json-en.html
Topics
Community Discussion
No community discussion yet for this question.