JSON & Data Formats
Practical guides to JSON, YAML, XML and CSV: fixing syntax errors, converting between formats, comparing documents and generating types from data.
6 articles
- JSON & Data Formats
How to Convert Nested JSON to CSV (Flattening Explained)
Turn nested JSON into a clean CSV for Excel or Google Sheets: dotted column names, arrays, missing keys, quoting and leading zeros, with working Python code.
· 5 min read
- JSON & Data Formats
How to Generate TypeScript Types from JSON API Responses
Turn a JSON sample into TypeScript interfaces, then fix what a generator can't know: nullable fields, optional keys, unions, dates and runtime validation.
· 6 min read
- JSON & Data Formats
How to Compare Two JSON Files and Find the Real Differences
Why a text diff of JSON shows noise, how a semantic JSON diff ignores key order and formatting, and how to compare JSON in the browser, with jq and in Python.
· 5 min read
- JSON & Data Formats
YAML Gotchas: The Norway Problem, Indentation and Other Traps
Why NO becomes false, ZIP codes turn into octal and comments cut passwords short in YAML, with tested examples and simple rules for writing safe YAML.
· 6 min read
- JSON & Data Formats
Common JSON Syntax Errors and How to Fix Them
Trailing commas, single quotes, comments, NaN and invisible characters: what each JSON parse error means, how to find the exact line, and how to fix it.
· 8 min read
- JSON & Data Formats
JSON vs YAML vs XML: Which Data Format Should You Use?
A practical comparison of JSON, YAML and XML: syntax, comments, types, tooling and performance, with clear advice for APIs, config files and documents.
· 5 min read