350-401 · Question #1270
Which JSON script is properly formatted? A. B. C. D.
The correct answer is C. { "river":[ { "name":"Mississippi", "state":"Louisiana", "ranking":"13" } ] }. Option C is correctly formatted JSON because it follows all JSON syntax rules: proper use of curly braces and square brackets, correctly quoted strings for both keys and values, and no trailing commas after the last element in the object. The structure is valid with a root object
Question
Which JSON script is properly formatted? A. B. C. D.
Options
- A{ "paint":[{ "type":"indoor", "color":"white", "sheen":"satin" }] }
- B{ "session":[{ "title":"Writing 201", "grade":"11", "location":"Maine" }] }
- C{ "river":[ { "name":"Mississippi", "state":"Louisiana", "ranking":"13" } ] }
- D{ "file":[ { "name":"File_4782", "location":"User_files", "bytes":"05007 ", } ] }
How the community answered
(32 responses)- A6% (2)
- B3% (1)
- C88% (28)
- D3% (1)
Explanation
Option C is correctly formatted JSON because it follows all JSON syntax rules: proper use of curly braces and square brackets, correctly quoted strings for both keys and values, and no trailing commas after the last element in the object. The structure is valid with a root object containing an array with one object inside it.
Topics
Community Discussion
No community discussion yet for this question.