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
.{ "type": "null" }
data
null
data
false
data
0
data
""
data
⠀
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!.