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.
Copy icon
 logo-white schema
{ "type": "null" }
Copy icon
data
null
Checkmark iconcompliant to schema
Copy icon
data
false
Error iconnot compliant to schema
Copy icon
data
0
Error iconnot compliant to schema
Copy icon
data
""
Error iconnot compliant to schema
Copy icon
data
Error iconnot 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!.