Skip to main content
Toollabz

Διαστήτης JSON

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.

Αυτή η σελίδα μεταφράζει το αγγλικό πρωτότυπο. Η μηχανή υπολογισμού είναι η ίδια.

Αγγλική έκδοση

Γρήγορη απάντηση

It parses the text as JSON and reprints it with indentation, or compactly, or reports the first syntax error.

Παράδειγμα: {"a":1} becomes a two-line pretty document with an indented key.

Οι υπολογισμοί ακολουθούν τον τύπο αυτής της σελίδας· η στρογγυλοποίηση και οι μονάδες μπορεί να αλλάξουν το τελευταίο ψηφίο. Θεωρήστε το αποτέλεσμα εκπαιδευτική εκτίμηση.

* Εκτίμηση. Τα πραγματικά ποσά μπορεί να διαφέρουν ανάλογα με τις υποθέσεις.

Τι κάνει αυτός ο υπολογιστής

It parses the text as JSON and reprints it with indentation, or compactly, or reports the first syntax error.

Για ποιον είναι

Developers checking API payloads, config files or a copied object.

Πώς λειτουργεί ο υπολογισμός

JSON.parse on the input, then JSON.stringify with a chosen indent. Errors come from the parser, not from a server.

Τύπος

Parse → reprint. No numerical formula.

Υποθέσεις

  • Input is text you are allowed to process locally.
  • Standard JSON, not JSON5, unless the page says otherwise.

Περιορισμοί

  • Very large documents may hit browser memory limits.
  • Does not fetch URLs for you.

Πώς να χρησιμοποιήσετε το εργαλείο

  1. 1Paste the JSON.
  2. 2Choose format or minify.
  3. 3Fix the reported line if the parser fails.

Συχνές ερωτήσεις

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.

Σχετικά εργαλεία

Μορφοποίηση και έλεγχος JSON | Toollabz