JSON Reference
Complete reference for JSON syntax and data types.
JSON Data Types
| Type | Example | Description |
|---|
| String | "hello world" | Text enclosed in double quotes |
| Number | 42, 3.14, -17 | Integer or floating point |
| Boolean | true, false | true or false (lowercase) |
| Null | null | Empty value (lowercase) |
| Object | { "key": "value" } | Key-value pairs in curly braces |
| Array | [1, 2, 3] | Ordered list in square brackets |
Common Errors & Fixes
| Error | Fix |
|---|
| Trailing comma | Remove comma after last element |
| Single quotes | Use double quotes for strings |
| Unquoted keys | Always quote object keys |
| Comments | JSON does not support comments |