JSON supports objects, arrays, strings, numbers, booleans, and null. Property names and strings use double quotes.
Objects and arrays
Objects group named values inside braces. Arrays hold ordered values inside brackets.
{
"name": "Cali Page Hub",
"tools": ["JSON", "URL", "Text"],
"private": true
}Common errors
- Single quotes instead of double quotes
- Trailing commas
- Unquoted property names
- Comments inside the data
Formatting and minification
Formatting adds whitespace and indentation. Minification removes unnecessary whitespace. Neither operation changes the underlying values.