JSON Guides & Tips

Practical, no-fluff articles on working with JSON — from fixing errors to shipping clean data.

  • 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.

  • What Are the 6 JSON Data Types?

    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 Format and Pretty Print JSON?

    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?

    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.

  • How to Fix the 8 Most Common JSON Errors?

    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.

  • Can JSON Have Comments?

    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.

  • Why Does JSON.parse Change Big Numbers?

    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.

  • How to Convert JSON to Excel?

    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.

  • How to Convert CSV to JSON?

    How to convert CSV to JSON in easy steps: header rows, commas and semicolons, quoted cells, ZIP codes, and short JavaScript and Python code.

  • What Is the Difference Between JSON and XML?

    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: Which One Should You Use?

    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?

    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?

    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?

    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.

  • How to Convert JSON to Python Classes?

    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?

    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.

  • What Is JSONPath and How Do You Use It?

    JSONPath explained with easy examples: $, dot notation, [*], search at any depth with .. and filters. Each one is shown with its result.

  • What Does It Mean to Minify JSON?

    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.

  • How to Open Large JSON Files?

    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.

  • How to Escape and Unescape JSON Strings?

    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 and How Do You Decode It?

    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.

Subscribe via RSS