Inspect an API response
Paste a compact response to reveal its objects, arrays, and nested fields before you write code against it.
Format, minify, and validate JSON locally in your browser. Spot syntax errors, make API payloads readable, and create compact JSON safely.
Validate, format, and minify structured data. Your result updates in the current tab as you work.
Validate, format, and minify structured data. Nothing you enter here is uploaded or stored.
{
"course": "HTML",
"lessons": 19,
"complete": true
}
--- Structure ---
Root: object
Objects: 1
Arrays: 0
Properties: 3
Key order: source orderJSON is easy to read when it is consistently indented and surprisingly hard to debug when one comma, quote, or bracket is missing. JSON Studio parses the value in your browser, then either presents a readable representation or explains why the input cannot be parsed.
Paste a compact response to reveal its objects, arrays, and nested fields before you write code against it.
Format a package, editor, deployment, or application configuration file before reviewing it with a teammate.
Minify valid JSON when you need a compact fixture, request body, or embed value.
These examples are specific to JSON formatter. Replace their values with your own, then use the result as a clue—not as a substitute for application validation.
A network panel gives you one compact line and you need to confirm which customer record is nested under data.
{"data":{"customer":{"id":42,"name":"Mina"}},"ok":true}{
"data": {
"customer": { "id": 42, "name": "Mina" }
},
"ok": true
}Formatting exposes the object boundary so you can distinguish data.customer.id from a top-level id.
A configuration file is copied from JavaScript and the parser rejects it.
{ theme: "dark", retries: undefined }Invalid JSON: keys need double quotes and undefined is not a JSON value.
Use "theme": "dark" and either omit retries or use null when the API contract explicitly permits it.
Use the result to make a decision in your code or content, not merely to produce another value to copy.
Copy the value itself, not Markdown code fences or a JavaScript assignment around it.
Formatting adds predictable two-space indentation; minifying removes non-essential whitespace.
If parsing fails, inspect the token immediately before the reported position for an extra comma, quote, or bracket.
Keys require double quotes, strings require double quotes, and comments, trailing commas, functions, undefined, and single-quoted strings are not valid JSON. If you need those features, you are working with JavaScript or a JSON-like configuration format instead.
A formatter can prove that text is valid JSON; it cannot prove the payload matches your application schema. After formatting, check required keys, value types, allowed values, and nested shapes at the boundary where your application accepts data.
type Profile = { name: string; marketing: boolean };
// JSON.parse(text) is only the first step.
// Validate the resulting value before treating it as Profile.Each tool is deliberately narrow. These are the mistakes most likely to appear when its output is copied into a real product without checking the surrounding constraint.
Why it matters: Strict API parsers reject JSON with trailing commas.
Better approach: Remove the comma after the final object property or array item before sending the payload.
Why it matters: Many APIs distinguish ‘not provided’ from ‘provided with no value’.
Better approach: Check the endpoint contract, then either omit the key or send null deliberately.
These tools help with bounded client-side work. Production decisions still need the validation, review, and authorization appropriate to your application.
No. The formatter intentionally refuses invalid JSON so a hidden guess cannot change your data. Use the parse message to fix the source, then format it.
No. Parsing and formatting happen in the current browser tab. Do not paste passwords, access tokens, private keys, or customer data into any browser tool unless your own security policy permits it.
The JSON standard has no comment syntax. Some tools accept JSONC, but an API or strict JSON parser will reject it.