JSON Guides
Short, practical answers to the questions developers search for most, from “Unexpected token” errors to JSONPath filters. Every guide links to a free tool so you can try it on your own data.
How to fix “Unexpected token” and other JSON errors
What the most common JSON.parse and Python errors mean, the mistakes behind them, and how to fix each one in seconds.
6 min read
How to format and pretty print JSON
Turn a one-line JSON blob into readable, indented JSON online, in code or on the command line, and minify it again when you're done.
4 min read
JSON Schema tutorial: validate JSON with examples
Write a JSON Schema for real data, understand the keywords you'll use most, and validate JSON against it online, in JavaScript or in Python.
6 min read
JSONPath cheat sheet with examples
Every JSONPath selector and filter you'll need on one page, each with an example and its result, following the RFC 9535 standard.
5 min read
JSON vs YAML: differences and when to use each
How JSON and YAML compare on syntax, comments and data types, the YAML pitfalls to watch for, and which one fits APIs and which fits config files.
5 min read
JSON vs XML: differences and when to use each
How JSON and XML differ in syntax, types, size and tooling, why most APIs moved to JSON, and where XML is still the better fit.
5 min read
How to convert JSON to Excel
Turn JSON into a spreadsheet with an online converter, Excel's own Power Query, a CSV file or a few lines of Python, and handle nested data properly.
5 min read
How to compare two JSON files
Compare JSON by its data rather than its text, so key order and formatting don't show up as changes, online or in code.
5 min read
What is a JWT? How JSON Web Tokens work
The three parts of a JSON Web Token, what the claims inside mean, how to decode and verify one, and the mistakes that make JWTs insecure.
6 min read
What is Base64 encoding and how does it work?
Why Base64 exists, how three bytes become four characters, what the = padding means, and how to encode and decode it correctly, emoji included.
5 min read
URL encoding explained: what %20 means and how to encode URLs
Why URLs turn spaces into %20, which characters must be encoded, the difference between %20 and +, and the right function to use in JavaScript and Python.
5 min read
What is a Unix timestamp and how do you convert it?
What a Unix timestamp counts, how to tell seconds from milliseconds, why 2038 matters, and how to convert timestamps to dates in any language.
5 min read