350-401 · Question #1171
Which JSON script is properly formatted? A. B. C. D.
The correct answer is D. [ {"drinks": [ {"type":"soda", "size":"small", "cup":"to-go" } ] } ]. Option D is correctly formatted JSON: it uses an outer array containing a properly structured object, whose value is itself a nested array of objects. All keys and string values are enclosed in double quotes, objects are wrapped in curly braces, arrays in square brackets, and the
Question
Which JSON script is properly formatted? A. B. C. D.
Exhibits
Options
- A["Rental": { "make":"Chevrolet", "model":"Corvette", "year":"2023", } ]
- B[ {"Tables":{ "use":"dining", "material":"glass", "shape":"round" } } ]
- C[ "Lodging": { "type":"hostel", "location":"Main Street", "phone":"346-621-6616" } ]
- D[ {"drinks": [ {"type":"soda", "size":"small", "cup":"to-go" } ] } ]
How the community answered
(24 responses)- A4% (1)
- B4% (1)
- D92% (22)
Explanation
Option D is correctly formatted JSON: it uses an outer array containing a properly structured object, whose value is itself a nested array of objects. All keys and string values are enclosed in double quotes, objects are wrapped in curly braces, arrays in square brackets, and there are no trailing commas - satisfying all JSON specification requirements.
Topics
Community Discussion
No community discussion yet for this question.



