Boolean and Null in JSON

From the JSON cheat sheet ยท Numbers and Literals ยท verified Aug 2026

Boolean and Null

Represent logical states and missing values.

json
{"enabled":true,"archived":false,"owner":null}
๐Ÿ“Œ true, false, and null are lowercase
๐Ÿ” null is a value, not a missing property
๐ŸŽฏ Define null semantics in API contracts
โš ๏ธ Do not quote booleans unless they are text
booleannullliterals

Continue with JSON

Save the full cheat sheet or work through every related task.

More JSON tasks

Back to the full JSON cheat sheet