nerdexam
Cisco

350-401 · Question #1257

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

The correct answer is D. "music":[ { "title": "A New Song", "genre": "pop", "year": "2019" } ]. Option D is correctly formatted JSON because it uses a properly quoted key ('music') paired with an array ([]) containing a valid JSON object with correctly quoted key-value pairs, all using commas as separators and no syntax errors. JSON requires keys to be in double quotes, val

Submitted by certguy· Mar 6, 2026Understanding and applying proper JSON syntax and structure for data interchange and configuration in programming or automation contexts.

Question

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

Exhibits

350-401 question #1257 exhibit 1
350-401 question #1257 exhibit 2

Options

  • A"class": { "name": "Reading 101", "Session ID": "474604043", "location":"B-15" }
  • B[ "class": { "title": "Science", "grade": "11", "location": "Room C". } ]
  • C"Auto":[ { "type": "truck", "model": "1500", "year": "2023" } ]
  • D"music":[ { "title": "A New Song", "genre": "pop", "year": "2019" } ]

How the community answered

(40 responses)
  • A
    3% (1)
  • B
    5% (2)
  • C
    3% (1)
  • D
    90% (36)

Explanation

Option D is correctly formatted JSON because it uses a properly quoted key ('music') paired with an array ([]) containing a valid JSON object with correctly quoted key-value pairs, all using commas as separators and no syntax errors. JSON requires keys to be in double quotes, values to be properly typed, and objects/arrays to use correct bracket notation with no trailing punctuation errors.

Topics

#JSON formatting#data serialization#syntax validation#structured data

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice