LOGBOOK

HELP

Quiz Entry - updated: 2026.07.14

What data types does JSON support?

JSON supports exactly six value types: strings, numbers, booleans, null, objects, and arrays.

Type Example Notes
String "hello" Must use double quotes
Number 42, 3.14 No quotes needed
Boolean true, false Lowercase
Null null Represents empty/missing
Object {"key": "value"} Nested structures
Array [1, 2, 3] Ordered lists

Not supported:

  • undefined - use null instead
  • Date - store as string: "2023-10-15"
  • Functions - not serializable
  • Comments - not allowed

Example with all types:

{
    "name": "John",
    "age": 30,
    "active": true,
    "spouse": null,
    "hobbies": ["reading", "coding"]
}

From Quiz: WEBT / Backend Development | Updated: Jul 14, 2026