boolean
The boolean type matches only two special values: true
and
false
. Note that values that evaluate to true
or false
,
such as 1 and 0, are not accepted by the schema.
{ "type": "boolean" }
true
false
"true"
Values that evaluate to true
or false
are still not
accepted by the schema:
0