350-401 · Question #382
Which data is properly formatted with JSON? A. B. C. D.
The correct answer is B. { "name": "Peter", "age": "25", "likesJson": true, "characteristics": ["small", "strong", 18] }. Option B is correctly formatted JSON because it uses proper key-value pair syntax with all properties separated by commas, strings are properly enclosed in matching double quotes, the boolean value 'true' is unquoted (as required), and the array contains a mix of valid strings an
Question
Exhibits
Options
- A{ "name": "Peter" "age": "25" "likesJson": true "characteristics": ["small", "strong", 18] }
- B{ "name": "Peter", "age": "25", "likesJson": true, "characteristics": ["small", "strong", 18] }
- C{ "name": "Peter, "age": "25", "likesJson": true, "characteristics": ["small", "strong", 18"] }
- D{ "name": "Peter", "age": "25", "likesJson": true, "characteristics": ["small", "strong", "18"] }
How the community answered
(35 responses)- A6% (2)
- B91% (32)
- C3% (1)
Explanation
Option B is correctly formatted JSON because it uses proper key-value pair syntax with all properties separated by commas, strings are properly enclosed in matching double quotes, the boolean value 'true' is unquoted (as required), and the array contains a mix of valid strings and an unquoted integer (18). JSON requires commas between key-value pairs, properly closed string literals, and correct data type representation.
Topics
Community Discussion
No community discussion yet for this question.







