nerdexam
Cisco

200-301 · Question #100

Which output displays a JSON data representation? A. B. C. D.

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

Submitted by certguy· Mar 5, 2026Network Programmability and Automation - Understanding data serialization formats (JSON) used in REST API responses, commonly tested in Cisco DevNet, CCNA, or CCNP certification exams under the programmability domain.

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" }

How the community answered

(50 responses)
  • A
    2% (1)
  • B
    6% (3)
  • C
    10% (5)
  • D
    82% (41)

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

#JSON syntax#REST API#Data formats#Network programmability

Community Discussion

No community discussion yet for this question.

Full 200-301 Practice