nerdexam
Cisco

350-401 · Question #1270

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

The correct answer is C. { "river":[ { "name":"Mississippi", "state":"Louisiana", "ranking":"13" } ] }. Option C is correctly formatted JSON because it follows all JSON syntax rules: proper use of curly braces and square brackets, correctly quoted strings for both keys and values, and no trailing commas after the last element in the object. The structure is valid with a root object

Submitted by brentm· Mar 6, 2026Understanding and applying proper JSON formatting and syntax rules, commonly tested in web development, API integration, and data management certification exams (e.g., Salesforce, CompTIA IT Fundamentals, or similar).

Question

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

Options

  • A{ "paint":[{ "type":"indoor", "color":"white", "sheen":"satin" }] }
  • B{ "session":[{ "title":"Writing 201", "grade":"11", "location":"Maine" }] }
  • C{ "river":[ { "name":"Mississippi", "state":"Louisiana", "ranking":"13" } ] }
  • D{ "file":[ { "name":"File_4782", "location":"User_files", "bytes":"05007 ", } ] }

How the community answered

(32 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    88% (28)
  • D
    3% (1)

Explanation

Option C is correctly formatted JSON because it follows all JSON syntax rules: proper use of curly braces and square brackets, correctly quoted strings for both keys and values, and no trailing commas after the last element in the object. The structure is valid with a root object containing an array with one object inside it.

Topics

#JSON syntax#data formatting#JSON structure#trailing comma error

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice