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
In Python,
null
is analogous to None
. schema
1
{ "type": "null" }data
1
nullcompliant to schema
data
1
falsenot compliant to schema
data
1
0not compliant to schema
data
1
""not compliant to schema
data
1
⠀not compliant to schema