Master JSON syntax and structure with this comprehensive reference guide. Learn about JSON data types, formatting, and best practices with our interactive JSON playground.
"string" - Text
42 - Number
true/false - Boolean
null - Null value
[] - Array
{} - Object✓ Use double quotes
✓ No trailing commas
✓ No comments
✓ No functionsJSON (JavaScript Object Notation) is a lightweight, text-based data interchange format. It's easy for humans to read and write, and easy for machines to parse and generate. Despite its name suggesting a connection to JavaScript, JSON is language-independent.

Master JSON syntax and structure with this comprehensive reference guide. Learn about JSON data types, formatting, and best practices.
{"name": "John Doe","age": 30,"isEmployed": true,"spouse": null,"hobbies": ["reading", "swimming"],"address": {"street": "123 Main St","city": "New York","zipCode": "10001"}}"string"Text in double quotes42Number (integer or float)true / falseBoolean valuesnullNull value[]Array (ordered list){}Object (key-value pairs)"2023-01-01"Date as string3.14159Decimal numbers// Empty array
[]["apple", "banana", "orange"][1, 2, 3, 4, 5]["John", 30, true, null][[1, 2], [3, 4], [5, 6]][{"name": "John", "age": 30},{"name": "Jane", "age": 25}]// Empty object
{}
{"name": "John","age": 30}
{"person": {"name": "John","contact": {"email": "john@example.com","phone": "+1234567890"}}}
{"company": "Tech Corp","employees": [{"name": "John", "role": "Developer"},{"name": "Jane", "role": "Designer"}]}{"status": "success","data": {"users": [...],"total": 150},"message": "Users retrieved"}{"database": {"host": "localhost","port": 5432,"name": "myapp"},"features": {"auth": true,"cache": false}}JSON is widely used for:
Follow these guidelines for clean and valid JSON: