350-401 · Question #1201
Which JSON script is properly formatted? A. B. C. D.
The correct answer is A. { "activity": [ { "type": "golf", "level": "beginning", "session": "2024" } ] }. Option A is correctly formatted JSON because it uses a root object (curly braces {}) containing a key-value pair where the value is a properly structured array (square brackets []) of objects, with all strings in double quotes and correct use of colons and commas. JSON requires a
Question
Which JSON script is properly formatted? A. B. C. D.
Exhibits
Options
- A{ "activity": [ { "type": "golf", "level": "beginning", "session": "2024" } ] }
- B"Stores": [ { "type": "retail", "location": "B27", "contact": "546-687-7251" } ]
- C"[plants": { "type": "annual", "color": "yellow", "season": "summer" } ]
- D[ "subject": { "title": "Language", "ID": "841963", "location": "Main Campus" } ]
How the community answered
(39 responses)- A90% (35)
- B3% (1)
- C5% (2)
- D3% (1)
Explanation
Option A is correctly formatted JSON because it uses a root object (curly braces {}) containing a key-value pair where the value is a properly structured array (square brackets []) of objects, with all strings in double quotes and correct use of colons and commas. JSON requires a single root element that is either an object {} or an array [], and all keys must be strings enclosed in double quotes. Option A satisfies all these structural and syntactic rules.
Topics
Community Discussion
No community discussion yet for this question.







