nerdexam
Cisco

350-401 · Question #1141

Which JSON script is properly formatted? A. B. C. D.

The correct answer is D. [ { "subject": { "title": "Art History", "listing": "elective", "session": "Spring" } } ]. Option D is properly formatted JSON because it follows all JSON structural rules: it uses an array containing an object, with a key ('subject') mapped to a nested object whose key-value pairs use valid strings for both keys and values, with correct use of colons, commas, curly br

Submitted by emma.c· Mar 6, 2026Understanding and validating properly structured JSON syntax for use in APIs, configuration files, and data exchange - commonly tested in CompTIA IT Fundamentals (ITF+), Web Development, or Cloud/API integration certifications.

Question

Which JSON script is properly formatted? A. B. C. D.

Options

  • A[ { "type": "hotel", "location": "B01", "contact": "446-301-12847" } ]
  • B[ { "truck": [ { "type": "Ford", "color": "red", "year": "1998" } ] } ]
  • C[ { "car": { "type": "Ford", "color": "red", "year": "1998" } } ]
  • D[ { "subject": { "title": "Art History", "listing": "elective", "session": "Spring" } } ]

How the community answered

(36 responses)
  • B
    3% (1)
  • C
    6% (2)
  • D
    92% (33)

Explanation

Option D is properly formatted JSON because it follows all JSON structural rules: it uses an array containing an object, with a key ('subject') mapped to a nested object whose key-value pairs use valid strings for both keys and values, with correct use of colons, commas, curly braces, and square brackets. The data is well-structured with no formatting violations. While options A, B, and C may appear syntactically similar, this question appears to be testing recognition of properly nested and semantically consistent JSON structures where D represents the cleanest, most conventionally correct formatting pattern.

Topics

#JSON formatting#data structures#syntax validation#web data interchange

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice