Comment ça marche
JSON has a small grammar, and almost every parse error reduces to one of four causes: a trailing comma before a closing brace or bracket, a single-quoted string, an unquoted object key, or a comment. None of these are legal in JSON even though they are all legal in JavaScript object literals, which is why a snippet copied from source code so often fails. This tool reports the offset, line and column of the first offending character and shows the surrounding text, which usually makes the cause obvious at a glance.
Beautifying inserts whitespace between tokens without changing what they mean. Minifying strips every byte that the grammar does not require, including the spaces in pretty-printed output, and typically removes 30 to 60 percent of the size of a formatted document. Neither operation touches string contents, numbers or key order — a formatter that reorders keys or rewrites numbers is doing something wrong, because object key order and numeric precision are both observable to the receiving program.
The tree view exists because reading a large document as text does not scale. Collapsing an object hides its subtree so you can navigate to the branch you care about, and the path of each node is shown so you can copy a reference to it. For programmatic queries, JSONPath expressions such as $.items[?(@.price > 100)].sku select nodes across the whole document, including through arrays and wildcards, which is far faster than scrolling when you need every occurrence of a field rather than one specific location.
One caveat worth knowing: JavaScript numbers are IEEE-754 doubles, so integers beyond 2^53 lose precision when parsed. A Twitter/X snowflake ID or a database bigint will come back subtly wrong — 1234567890123456789 becomes 1234567890123456800. This tool detects integers outside the safe range and warns rather than silently rounding, because the failure is invisible until an ID fails to match in a database lookup.
Cas d'usage courants
- Format a minified API response so you can read the structure and find the field you need.
- Locate the exact character that makes a config file fail to parse at deploy time.
- Minify a JSON fixture before embedding it in a test or a seed script.
- Run a JSONPath query to extract every matching value from a deeply nested response.
- Check whether a payload contains a number large enough to lose precision in JavaScript.
- Compare the key count and depth of two responses to see how a schema changed between versions.
Dernière mise à jour: 2026-10-14 — le corps de l'article est affiché en anglais ; l'interface est traduite.