JSON Basics
Core JSON syntax, valid values, root structures, and foundational examples for working with JSON documents.
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## Valid JSON roots
## Core syntax rules
More in JSON
JSONL and NDJSON
Newline-delimited JSON patterns for logs, streams, ETL, and large-file processing workflows.
JSON API Payload Patterns
Reusable JSON payload shapes for APIs: envelopes, pagination, errors, metadata, partial updates, and event-style messages.
JSON Schema Validation
Practical JSON Schema examples for required fields, types, enums, arrays, nested objects, and validation workflows.
JSON Formatting, Minifying, and Pretty-Printing
Commands and patterns for compact JSON, human-readable formatting, stable sorting, and terminal-friendly inspection.
JSON Validation and Common Errors
How to validate JSON, spot parse failures, repair common mistakes, and debug malformed payloads quickly.
JSON Escaping and Encoding
Escape sequences, Unicode, URLs, embedded JSON strings, and encoding pitfalls when storing or transporting JSON.