Reference

null

When a schema specifies a type of null, it has only one acceptable value: null.

It's important to remember that in JSON, null isn't equivalent to something being absent. See Required Properties for an example.

Language-specific info:
Python
Ruby
Objective-C
Swift
In Python, null is analogous to None.
schema
{ "type": "null" }
data
null
compliant to schema
data
false
not compliant to schema
data
0
not compliant to schema
data
""
not compliant to schema
data
not compliant to schema

Need Help?

Did you find these docs helpful?

Help us make our docs great!

At JSON Schema, we value docs contributions as much as every other type of contribution!

Still Need Help?

Learning JSON Schema is often confusing, but don't worry, we are here to help!.