Field note

A practical guide to JSON

JSON is a lightweight text format for structured data.

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.

Open the toolkit