JSON Copilot

What is a JSON array?

Usage & Getting Started

A JSON array is an ordered list of values wrapped in square brackets [ ] and separated by commas. Unlike object keys, array items have a position (index) that matters: the first item is index 0.

{
  "tags": ["news", "tech", "ai"],
  "scores": [98, 76, 100],
  "users": [
    { "name": "Ada" },
    { "name": "Alan" }
  ]
}

Key things to know

  • Items can be any JSON type, and commonly are objects (an array of records)
  • Items keep their order; position is meaningful
  • An array can be empty: []
  • No trailing comma after the last item

Arrays of objects are the typical shape of an API response. See how they relate to JSON objects, or flatten a deeply nested array with the flatten tool.

Still Have Questions?

Check out our other FAQ topics or return to the JSON Copilot app