What data types does JSON support?
Usage & Getting Started
JSON supports exactly six data types: string, number, boolean, null, object, and array. That small set is deliberate: it keeps JSON simple and portable across every programming language.
{
"string": "hello",
"number": 42.5,
"boolean": true,
"nothing": null,
"object": { "nested": "value" },
"array": [1, 2, 3]
}
The six types explained
- String: text in double quotes:
"hello" - Number: integer or decimal, no quotes:
42,3.14,-1e10 - Boolean:
trueorfalse - Null: the empty value:
null - Object: key-value pairs in
{ } - Array: an ordered list in
[ ]
JSON has no built-in date, undefined, function, or comment types. Dates are usually stored as ISO strings like "2026-01-15T10:00:00Z".
Want to see the types in your own data? Paste it into the tree viewer, or read about JSON syntax rules and JSON objects.
Still Have Questions?
Check out our other FAQ topics or return to the JSON Copilot app