JSON guides.
Worked examples and recommendations for converting and comparing JSON. Every guide links to the matching tool you can run in your browser.
Conversion guides
Conversion
Diff Two JSON Files: Find What Changed
Diff two JSON files to find added, changed, and removed fields. Examples for API contract diffs, config drift, and snapshot debugging — entirely in your browser.
Conversion
Flatten Nested JSON: Dot-Notation Keys
How to flatten nested JSON objects and arrays into single-level dot-notation keys. Examples for analytics, CSV export, and config templating with edge cases.
Conversion
JSON to CSV: Convert Flat and Nested Data
How to convert JSON to CSV including nested arrays and objects. Side-by-side examples, common pitfalls, and a free in-browser tool that handles edge cases.
Conversion
JSON to Pydantic: Generate Python Models
Generate Pydantic v2 models from a JSON sample for runtime validation in Python. Handles nested objects, optional fields, and Optional vs Union types.
Conversion
JSON to TypeScript: Generate Interfaces
Generate accurate TypeScript interfaces from a JSON sample. Handles nested objects, unions, optional fields, and nullable values without hand-typing.
Conversion
JSON to YAML: Convert Config and Data Files
Convert JSON to YAML for config files, Kubernetes manifests, and CI pipelines. Step-by-step examples with multiline strings, comments, and edge cases.
Conversion
JSON to Zod: Generate Runtime Schemas
Generate a Zod schema from a JSON sample for runtime validation, plus an inferred TypeScript type. Handles unions, nullables, and optional fields.
Comparison guides
Comparison
JSON Schema vs TypeScript Types: When to Use Which
JSON Schema vs TypeScript types compared on runtime vs compile-time, portability, validation power, and ecosystem. With concrete examples and recommendations.
Comparison
JSON vs YAML: Choosing a Config Format
JSON vs YAML compared on readability, comments, tooling, and gotchas. Concrete examples and a clear recommendation for each common config use case.
Comparison
JSONPath vs jq: Which Query Language to Use
JSONPath vs jq compared on syntax, speed, learning curve, and use cases. Concrete examples and clear picks for filtering, reshaping, and ad-hoc inspection.
Comparison
JWT vs Session Tokens: How to Choose
JWT vs session tokens compared on revocation, storage, scale, and security. Concrete recommendations for monoliths, distributed apps, and short-lived APIs.
Comparison
Minify vs Prettify JSON: When to Use Each
Minify vs prettify JSON compared on transport size, readability, and tooling. Concrete byte-savings examples and a clear rule for every use case.