For the complete documentation index, see llms.txt. This page is also available as Markdown.

Nulls

The null value — an explicit absence of a value.

A null represents the absence of a value — data that is missing, unknown, or intentionally empty. Null is a scalar value with a compact and a verbose form.

Syntax

null        = compactNull | verboseNull
compactNull = "N"
verboseNull = "null"

Structural elements

Token
Name
Description

N

Compact null

null in compact form

null

Verbose null

the verbose null keyword

Valid forms

The compact and verbose forms are equivalent; the compact form is recommended for terse data.

---
N, null

Null versus empty

Null is the absence of a value, distinct from an empty string or an empty array:

Not null

Null keywords are case-sensitive and spelled exactly. Any other token is not an error — it is parsed as an open string, so it is not null:

To store one of these as text, that is exactly what happens. To express the absence of a value, write N or null.

See Also

Last updated

Was this helpful?