JSON Objects and Arrays/Missing property vs null property

Omitting a field is different from setting it to null.

Section: Object patterns

Missing property vs null property

json
json
{
  "nickname": null
}
Explanation

A missing property can mean "unknown" or "not sent". `null` usually means explicitly empty.

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 Object patterns
Simple object
Use objects for named properties.
OpenIn sheetjsonsame section
Nested object
Represent related subfields in a child object.
OpenIn sheetjsonsame section
Array of strings
A simple list of primitive values.
OpenIn sheetjson1 tag match
Array of objects
A common shape for API collections.
OpenIn sheetjson1 tag match
Mixed-type arrays are legal but risky
JSON allows mixed types, but they are often harder to consume.
OpenIn sheetjson1 tag match
Extract a field from each array item
Print one property from every object in an array.
OpenIn sheetbash1 tag match