350-401 · Question #319
Refer to the exhibit. What is the JSON syntax that is formed from the data?
The correct answer is A. {Make": "Gocar", "Model": "Zoom", "Features": ["Power Windows", "Manual Drive", "Auto AC"]}. Valid JSON syntax requires keys and string values to be enclosed in double quotes, objects to be enclosed in curly braces, and arrays in square brackets with comma-separated elements.
Question
Exhibit
Options
- A{Make": "Gocar", "Model": "Zoom", "Features": ["Power Windows", "Manual Drive", "Auto AC"]}
- B"Make": "Gocar", "Model": "Zoom", "Features": ["Power Windows", "Manual Drive", "Auto AC"]
- C{"Make": Gocar, "Model": Zoom, "Features": Power Windows, Manual Drive, Auto AC}
- D{"Make": ["Gocar", "Model": "Zoom"], Features": ["Power Windows", "Manual Drive", "Auto
How the community answered
(31 responses)- A61% (19)
- B23% (7)
- C6% (2)
- D10% (3)
Why each option
Valid JSON syntax requires keys and string values to be enclosed in double quotes, objects to be enclosed in curly braces, and arrays in square brackets with comma-separated elements.
This option presents a valid JSON object where keys ('Make', 'Model', 'Features') are strings, string values ('Gocar', 'Zoom') are enclosed in double quotes, and the 'Features' value is a correctly formatted array of strings.
This option is missing the enclosing curly braces `{}` required for a JSON object, making it an incomplete and invalid JSON document.
This option contains unquoted string values for 'Gocar' and 'Zoom' and an incorrectly formatted array for 'Features' that is not enclosed in square brackets and has unquoted elements.
This option incorrectly formats the 'Make' key with an array value that includes 'Model', and the 'Features' array and the main object are not properly closed.
Concept tested: JSON data structure and syntax
Source: https://www.json.org/json-en.html
Topics
Community Discussion
No community discussion yet for this question.
