DangKit
All Cheatsheets

JSON Cheat Sheet

# JSON Cheat Sheet ## Data Types - **string** โ€” "hello", "123", "" - **number** โ€” 42, 3.14, -7, 1e10 - **boolean** โ€” true, false - **null** โ€” null - **object** โ€” {"key": "value"} - **array** โ€” [1, 2, 3] ## Syntax Rules - Keys must be double-quoted strings - No trailing commas allowed - Strings use double quotes (not single) - Unicode: \u0041 for 'A' ## Common Patterns ```json { "name": "John", "age": 30, "active": true, "tags": ["dev", "tools"], "address": { "city": "NYC" } } ``` ## Validation Checklist 1. All keys are double-quoted 2. No trailing commas 3. No comments (JSON doesn't support them) 4. Strings use double quotes only
DangKit โ€” 139+ Free Online Tools: PDF, Dev, Design, Finance & More