JSON vormindaja
Paste JSON to pretty-print or minify it. The parser runs in your browser so the document does not need to leave the device for this task.
See leht tõlgib ingliskeelset originaali. Arvutusmootor on sama.
Kiire vastus
It parses the text as JSON and reprints it with indentation, or compactly, or reports the first syntax error.
Näide: {"a":1} becomes a two-line pretty document with an indented key.
Arvutused järgivad selle lehe valemit; ümardamine ja ühikud võivad muuta viimast numbrit. Käsitlege tulemust haridusliku hinnanguna.
* Hinnang. Tegelikud summad võivad eeldustest sõltuvalt erineda.
Mida see kalkulaator teeb
It parses the text as JSON and reprints it with indentation, or compactly, or reports the first syntax error.
Kellele see on
Developers checking API payloads, config files or a copied object.
Kuidas arvutus töötab
JSON.parse on the input, then JSON.stringify with a chosen indent. Errors come from the parser, not from a server.
Valem
Parse → reprint. No numerical formula.
Eeldused
- Input is text you are allowed to process locally.
- Standard JSON, not JSON5, unless the page says otherwise.
Piirangud
- Very large documents may hit browser memory limits.
- Does not fetch URLs for you.
Kuidas tööriista kasutada
- 1Paste the JSON.
- 2Choose format or minify.
- 3Fix the reported line if the parser fails.
KKK
- Why did it fail on a trailing comma?
- Standard JSON does not allow trailing commas. Remove them or convert the file.
- Is my data sent to Toollabz?
- Formatting runs in the browser. Do not paste secrets into any third-party page if your policy forbids it.