350-401 · Question #1144
Which JSON script is properly formatted? A. B. C. D.
The correct answer is D. {"frames": { "type":"premium", "material":"wood", "shape":"square" } }. Option D is correctly formatted JSON: it has properly matched curly braces, all string values are fully enclosed in double quotes, and there are no trailing commas after the last key-value pair. Valid JSON requires strict adherence to syntax rules, including no trailing commas an
Question
Which JSON script is properly formatted? A. B. C. D.
Options
- A{"class": { "title":"Science", "Grade":"11", "Location":"Room C", } }
- B{"Lodging": { "Type":"B&B", "Location":"Oceanfront", "Contact":"946-685-8364 } }
- C{"subject": { "title":"Sewing", "setting":"Creative", "session":"Summer" } }
- D{"frames": { "type":"premium", "material":"wood", "shape":"square" } }
How the community answered
(17 responses)- A6% (1)
- B6% (1)
- D88% (15)
Explanation
Option D is correctly formatted JSON: it has properly matched curly braces, all string values are fully enclosed in double quotes, and there are no trailing commas after the last key-value pair. Valid JSON requires strict adherence to syntax rules, including no trailing commas and complete quote encapsulation of all strings.
Topics
Community Discussion
No community discussion yet for this question.