350-401 · Question #1085
350-401 Question #1085: Real Exam Question with Answer & Explanation
The correct answer is A: { "car":{ "type":"Ford", "color":"Blue", "year":"1998" } }. Option A is correctly formatted JSON because it uses proper colon (:) separators between keys and values, all strings are enclosed in double quotes, and the nested object structure is syntactically valid. Options B and D both incorrectly use an equals sign (=) instead of a colon
Question
Which JSON script is properly formatted? A. B. C. D.
Options
- A{ "car":{ "type":"Ford", "color":"Blue", "year":"1998" } }
- B{ "book":{ "title":"Engineering", "grade"="4", "edition":"4" } }
- C{ "truck":{ "type":"Dodge", "color":"Blue", "year":"2010" } }
- D{ "device":{ "type":"switch", "model":"Catalyst", "model"="30-46.10.04.53.6c" } }
Explanation
Option A is correctly formatted JSON because it uses proper colon (:) separators between keys and values, all strings are enclosed in double quotes, and the nested object structure is syntactically valid. Options B and D both incorrectly use an equals sign (=) instead of a colon (:) as the key-value separator, which is a fundamental JSON syntax violation. Option D also contains a duplicate key, which further invalidates it.
Topics
Community Discussion
No community discussion yet for this question.