What Is JSON and What Is It Used For?
What is JSON? An easy guide to what JSON is, what it looks like, its rules and where it is used, with simple examples.
Practical, no-fluff articles on working with JSON — from fixing errors to shipping clean data.
What is JSON? An easy guide to what JSON is, what it looks like, its rules and where it is used, with simple examples.
JSON has six data types: string, number, boolean, null, array and object. See each one with examples, what is not allowed, and how to store dates.
How to open a JSON file on Windows, Mac or your phone: in a browser, Notepad, VS Code or Excel. Plus an easy way to read big JSON files.
How to format JSON so it’s easy to read: pretty print online, in VS Code, with JSON.stringify in JavaScript, json.dumps in Python or the command line.
How to check if JSON is valid: what valid JSON means, how to use a free online JSON validator, and how to check JSON in JavaScript and Python.
Fix the most common JSON errors: extra commas, single quotes, comments, curly quotes and more. See what each error means and how to fix it.
Why AI tools like ChatGPT give broken JSON, and how to fix it: stop it early, check every reply, and repair what is left.
Can JSON have comments? No. Learn why, how JSONC and JSON5 differ, the downsides of a “_comment” key, and how to turn JSONC into plain JSON.
JSON.parse rounds whole numbers above 2^53 and drops trailing zeros without any warning. Learn why, and how to keep IDs and decimals exact.
Learn how to convert JSON to Excel step by step, with an online tool or Power Query, and fix common problems like long IDs and lost leading zeros.
Convert JSON to CSV without losing data. Learn how to handle nested objects, arrays, missing keys, leading zeros and long IDs in Excel.
How to convert CSV to JSON in easy steps: header rows, commas and semicolons, quoted cells, ZIP codes, and short JavaScript and Python code.
JSON vs XML in simple English. See both side by side, compare size, attributes and comments, and learn when to still use XML instead of JSON.
JSON vs YAML with simple examples: comments, indentation, YAML traps like yes/no values, and which format to use for APIs and config files.
How to import JSON into a SQL database: turn objects into rows, create the table, handle nested data, escape quotes and insert many rows fast.
What is JSON Schema? An easy guide for beginners: what it does, a simple example, how to check data with it, and how to make one.
How to create TypeScript types from JSON: interfaces, optional fields, unions and lists of objects. Plus why you still need checks when the app runs.
Convert JSON to Python classes with dataclasses, Pydantic models or TypedDict. Learn which to pick, how data checks work and how to fix odd key names.
How to compare two JSON files and ignore key order and spacing. Compare by path, handle arrays, sort keys and use jq on the command line.
JSONPath explained with easy examples: $, dot notation, [*], search at any depth with .. and filters. Each one is shown with its result.
What it means to minify JSON, what it removes, how much space it saves with gzip, and how to minify JSON in JavaScript and Python.
Large JSON files can freeze your editor or browser. Learn how to open them: check the size, use a tree view, minify, split into JSON Lines or stream.
Learn how to escape JSON strings: which characters need escaping, how escape codes work, and how to fix Windows paths and double-escaped JSON.
What is a JWT (JSON Web Token)? Learn its three parts, what exp and iat mean, and how to decode a JWT safely without leaking it.