350-401 · Question #1302
Which JSON script is properly formatted? A. B. C. D.
The correct answer is C. {"furniture": { "type":"Sofa", "material":"cloth", "color":"blue" } }. Option C is correctly formatted JSON: it uses proper curly braces for objects, all string values are enclosed in double quotes, key-value pairs are separated by colons, and there is no trailing comma after the last property. JSON requires strict syntax adherence, and Option C sat
Question
Which JSON script is properly formatted? A. B. C. D.
Options
- A{"Lodging": { "type":"motel", "location":"Main Street, "contact":346-137-6187 } }
- B{"Plates": { [ "use":"salad", "size":"small", "shape":"round" ] } }
- C{"furniture": { "type":"Sofa", "material":"cloth", "color":"blue" } }
- D{"Auto": { "maker":"Plymouth", "color":"green", "year":1970, } }
How the community answered
(31 responses)- A6% (2)
- C90% (28)
- D3% (1)
Explanation
Option C is correctly formatted JSON: it uses proper curly braces for objects, all string values are enclosed in double quotes, key-value pairs are separated by colons, and there is no trailing comma after the last property. JSON requires strict syntax adherence, and Option C satisfies all of these rules without any violations.
Topics
Community Discussion
No community discussion yet for this question.