JSON Cheat Sheet
Everything you need to know about JSON syntax — data types, structure rules, escaping, and common patterns — in one quick reference.
Last updated: May 21, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is JSON Cheat Sheet?
JSON (JavaScript Object Notation) is the universal data interchange format used by REST APIs, configuration files, and databases. It is simple but strict: no comments, no trailing commas, only double-quoted strings, and only six data types.
This cheat sheet covers all JSON syntax rules, data types with examples, nesting patterns, string escaping sequences, and common mistakes that cause parse errors.
How to Use JSON Cheat Sheet
Common Use Cases
- Developers building or consuming REST APIs who need a quick syntax reminder.
- Students learning JSON for the first time who want a structured reference.
- Developers debugging JSON parse errors who want to check escaping rules.
- DevOps engineers writing JSON configuration files who need a quick lookup.
Example Input and Output
A JSON object demonstrating all six data types.
{
"name": "Alice",
"age": 30,
"active": true,
"score": null,
"tags": ["admin", "user"],
"address": { "city": "London" }
}string, number, boolean, null, array, objectTip: use a validator
When a JSON parse error is hard to find, paste into the JSON Validator tool — it reports the exact line and column of the syntax error.

