> For the complete documentation index, see [llms.txt](https://docs.internetobject.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.internetobject.org/structure-and-syntax/values/null.md).

# 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

```ebnf
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.

```ruby
---
N, null
```

## Null versus empty

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

```ruby
N        # null — no value
""       # an empty string (a value)
[]       # an empty array (a value)
```

## 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:

```ruby
n                    # open string "n", not null
NULL                 # open string "NULL", not null
Null                 # open string "Null", not null
nil                  # open string "nil", not null
undefined            # open string "undefined", 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

* [Value Representations](/structure-and-syntax/values.md) — all value types
* [Booleans](/structure-and-syntax/values/booleans.md) — true and false
* [Optional & nullable members](/schema-definition-language/advanced-schema-concepts/memberdef.md) — `?` and `*` in schemas


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.internetobject.org/structure-and-syntax/values/null.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
