Data Types

JSON supports the following data types:

Data Type
Description
Example

String

Text enclosed in double quotes

"Hello, world"

Number

Integer or floating-point number

42, 3.14

Boolean

True or false

true, false

Null

Represents a null value

null

Array

An ordered list of values

[1, "two", true]

Object

A collection of key-value pairs

{"name": "Alice"}

Last updated