JSON Array Example

A valid JSON array of objects. Arrays use square brackets []. Each element can be an object, string, number, or nested array.

Example input

[
  {"id": 1, "name": "Item A"},
  {"id": 2, "name": "Item B"},
  {"id": 3, "name": "Item C"}
]

Explanation

  • Arrays start with [ and end with ].
  • Elements are separated by commas. No trailing comma after the last element.
  • Objects inside use double quotes for keys and string values.
  • Numbers (e.g. 1, 2) do not need quotes.

Validate this example

Try in JSON Validator

FAQ

Can JSON arrays have mixed types?
Yes. A JSON array can contain objects, strings, numbers, booleans, null, or nested arrays.
What is invalid in a JSON array?
Trailing commas, single quotes, unquoted keys in objects. See our error guides.

JSON Tools · JSON Validator · All tools