Looking for a tool? Browse the workbench →
JSON Guides & Tutorials
Step-by-step guides covering everything from JSON basics to advanced topics like converting JSON for Kubernetes and exporting nested data to CSV. Free, no sign-up.
Getting started5 min read
How to Open a JSON File on Windows, Mac or Online
Open a .json file in your browser with a free viewer, in Notepad or a code editor on Windows, or TextEdit on Mac. Plus what to do when it opens as one long line or will not open.
JSON fundamentals5 min read
Can JSON Have Comments? JSON, JSONC, and JSON5
Strict JSON does not allow comments. Learn when to use JSONC or JSON5, how to keep notes in ordinary JSON, and how to turn a commented configuration into valid JSON.
Troubleshooting5 min read
Unexpected End of JSON Input: Causes and Fixes
This error means a JSON parser ran out of text before completing a value. Find out whether you received an empty response, a truncated document, or incomplete JSON before choosing a fix.
Developer workflows5 min read
How to Pretty Print JSON in Python
Make a JSON file or API response readable using Python’s built-in json module. Learn the difference between parsing text, formatting an object, and writing a UTF-8 file.
Getting started5 min read
How to Create a JSON File: Syntax, Examples, and Validation
Create a small JSON document, check its syntax, and save it as a .json file. Learn how to choose types, represent multiple records, and avoid the mistakes that cause parser errors.
Developer workflows5 min read
JSON.parse vs JSON.stringify: Objects, Strings, and Double Encoding
Parsing turns JSON text into a JavaScript value. Stringifying turns a JavaScript value into JSON text. Follow a value across both directions to avoid accidentally encoding a document twice.
Data workflows5 min read
How to Convert JSON to Excel Without Losing Nested Data
Choose CSV for a simple table or XLSX for a styled workbook. Learn how nested objects, arrays, missing fields and string identifiers affect the spreadsheet you export.
Troubleshooting5 min read
Unexpected Token in JSON at Position 0: What It Means and How to Fix It
Unexpected token <, o, u or ' in JSON means JSON.parse received something that is not JSON: usually an HTML error page, an object instead of a string, or undefined. Find which one in a minute.
Troubleshooting5 min read
Python JSONDecodeError: Expecting Value, Extra Data and Other Fixes
Fix json.decoder.JSONDecodeError in Python: Expecting value at line 1 column 1, Extra data, Expecting property name enclosed in double quotes, and Invalid control character. Causes and code for each.
Troubleshooting5 min read
Bad Control Character in String Literal in JSON: Fix Raw Newlines and Tabs
Bad control character in string literal, Invalid control character (Python) and '0x0A' is invalid within a JSON string (.NET) all mean a raw newline, tab or other control character sits inside a JSON string. Here is how to escape it.
Troubleshooting5 min read
Unexpected Non-Whitespace Character After JSON: Causes and Fixes
Unexpected non-whitespace character after JSON at position N (and Python's Extra data, Gson's JSON document was not fully consumed, .NET's Additional text encountered) means text follows a complete JSON value. Here is why and how to fix it.
JSON fundamentals5 min read
JSON vs XML: Differences, Examples and When to Use Each
JSON is smaller and maps directly to objects in code; XML supports attributes, namespaces, mixed content and mature schema tooling. See the same data in both formats and when each one fits.
Beginner5 min read
What is JSON?
JSON syntax, data types, rules, and why it became the universal data format for APIs.
Beginner5 min read
How to Beautify JSON
Format and pretty print JSON in seconds. Covers indentation options, common errors, and beautify vs minify.
Beginner4 min read
How to Minify JSON
Compress JSON to reduce file size for production APIs, databases, and storage.
Debugging5 min read
Fix Invalid JSON
Diagnose and fix the 8 most common JSON errors — trailing commas, single quotes, unquoted keys, and more.
Intermediate4 min read
How to Compare Two JSON Objects
Use JSON diff to spot added, removed, and changed fields instantly — great for API testing and debugging.
DevOps5 min read
JSON to YAML for Kubernetes & Docker
Convert JSON configs to YAML for Kubernetes, Helm, and Docker Compose. Covers syntax differences and YAML gotchas.
Comparison6 min read
JSON vs YAML – Differences & When to Use Each
Side-by-side comparison of JSON and YAML: syntax, performance, comments, and the right format for APIs vs configs.
Data4 min read
Flatten Nested JSON to CSV
Export JSON arrays to Excel and Google Sheets. Learn how nested objects and arrays are flattened.
Ready to work with JSON?
All tools are free, instant, and work entirely in your browser.
Open JSON Beautifier