350-401 · Question #1257
Which JSON script is properly formatted? A. B. C. D.
The correct answer is D. "music":[ { "title": "A New Song", "genre": "pop", "year": "2019" } ]. Option D is correctly formatted JSON because it uses a properly quoted key ('music') paired with an array ([]) containing a valid JSON object with correctly quoted key-value pairs, all using commas as separators and no syntax errors. JSON requires keys to be in double quotes, val
Question
Which JSON script is properly formatted? A. B. C. D.
Exhibits
Options
- A"class": { "name": "Reading 101", "Session ID": "474604043", "location":"B-15" }
- B[ "class": { "title": "Science", "grade": "11", "location": "Room C". } ]
- C"Auto":[ { "type": "truck", "model": "1500", "year": "2023" } ]
- D"music":[ { "title": "A New Song", "genre": "pop", "year": "2019" } ]
How the community answered
(40 responses)- A3% (1)
- B5% (2)
- C3% (1)
- D90% (36)
Explanation
Option D is correctly formatted JSON because it uses a properly quoted key ('music') paired with an array ([]) containing a valid JSON object with correctly quoted key-value pairs, all using commas as separators and no syntax errors. JSON requires keys to be in double quotes, values to be properly typed, and objects/arrays to use correct bracket notation with no trailing punctuation errors.
Topics
Community Discussion
No community discussion yet for this question.

