JSON Objects and Arrays/Array of objects

A common shape for API collections.

Section: Array patterns

Array of objects

json
json
[
  { "id": 1, "name": "Ada" },
  { "id": 2, "name": "Linus" }
]
Explanation

Widely used for query results and exports.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Array patterns
Array of strings
A simple list of primitive values.
OpenIn sheetjsonsame section
Mixed-type arrays are legal but risky
JSON allows mixed types, but they are often harder to consume.
OpenIn sheetjsonsame section
Extract a field from each array item
Print one property from every object in an array.
OpenIn sheetbashsame section
Simple object
Use objects for named properties.
OpenIn sheetjson1 tag match
Nested object
Represent related subfields in a child object.
OpenIn sheetjson1 tag match
Missing property vs null property
Omitting a field is different from setting it to null.
OpenIn sheetjson1 tag match