350-401 · Question #1201
350-401 Question #1201: Real Exam Question with Answer & Explanation
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.
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" } ]
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.