200-301 · Question #100
200-301 Question #100: Real Exam Question with Answer & Explanation
The correct answer is D: { "response": { "taskid": {}, "url": "string" } "version": "string" }. Valid JSON requires strict syntax rules: all key-value pairs must use double quotes, objects must be separated by commas between members, and values must be valid JSON types. Option A appears correct syntactically with a comma separating the 'response' and 'version' fields at the
Question
Which output displays a JSON data representation? A. B. C. D.
Options
- A{ "response": { "taskid": {}, "url": "string" }, "version": "string" }
- B{ "response": { "taskid": {}, "url": "string" } "version": "string" }
- C{ "response": { "taskid": {}, "url": "string" } "version": "-string" }
- D{ "response": { "taskid": {}, "url": "string" } "version": "string" }
Explanation
Valid JSON requires strict syntax rules: all key-value pairs must use double quotes, objects must be separated by commas between members, and values must be valid JSON types. Option A appears correct syntactically with a comma separating the 'response' and 'version' fields at the top level, which is actually required in valid JSON. The correct answer D represents properly structured JSON with correct nesting, quoted strings, and an empty object {} as a valid value for 'taskid'. Options B and C are missing the required comma between the 'response' object and the 'version' field, making them invalid JSON. Option C additionally uses '-string' which, while technically a valid string value, is combined with the missing comma syntax error, making it invalid JSON overall.
Topics
Community Discussion
No community discussion yet for this question.