nerdexam
Cisco

350-401 · Question #1171

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

The correct answer is D. [ {"drinks": [ {"type":"soda", "size":"small", "cup":"to-go" } ] } ]. Option D is correctly formatted JSON: it uses an outer array containing a properly structured object, whose value is itself a nested array of objects. All keys and string values are enclosed in double quotes, objects are wrapped in curly braces, arrays in square brackets, and the

Submitted by akirajp· Mar 6, 2026Understanding and validating JSON data format syntax, commonly tested in web development, API integration, and data interchange certification objectives (e.g., CompTIA IT Fundamentals, AWS Cloud Practitioner, or general programming certifications).

Question

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

Exhibits

350-401 question #1171 exhibit 1
350-401 question #1171 exhibit 2
350-401 question #1171 exhibit 3
350-401 question #1171 exhibit 4

Options

  • A["Rental": { "make":"Chevrolet", "model":"Corvette", "year":"2023", } ]
  • B[ {"Tables":{ "use":"dining", "material":"glass", "shape":"round" } } ]
  • C[ "Lodging": { "type":"hostel", "location":"Main Street", "phone":"346-621-6616" } ]
  • D[ {"drinks": [ {"type":"soda", "size":"small", "cup":"to-go" } ] } ]

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    4% (1)
  • D
    92% (22)

Explanation

Option D is correctly formatted JSON: it uses an outer array containing a properly structured object, whose value is itself a nested array of objects. All keys and string values are enclosed in double quotes, objects are wrapped in curly braces, arrays in square brackets, and there are no trailing commas - satisfying all JSON specification requirements.

Topics

#JSON syntax#data formatting#web data structures#serialization

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice