Minify and validate JSON
When you paste a JSON blob from an API response and want to both pretty-print it and confirm there are no syntax errors, this chain does both. The first node formats (pretty-prints) the JSON so you can read it; the second node validates the formatted output, giving you a clear pass/fail signal.
What it solves
Format JSON for inspection and validate it is syntactically correct in one pass.
Input → Output
JSON Formatter input → JSON Validator output across 2 steps.
Runs in
1–2 minutes · fully local in your browser.
Before you start
- A JSON string (possibly minified or malformed)
The pipeline
-
Format, minify, or sort JSON online. Free, private, and 100% client-side.
Params: mode=format
-
Validate JSON and pinpoint syntax errors by line and column. Free, private, and 100% client-side.
Runs locally in your browser. The recipe defines the pipeline only — your input never leaves this tab.
▶Run this workflow
Enter your input below and click Run. All processing happens locally in your browser — nothing is uploaded.
Pipeline progress
- JSON Formatterjson-format
- JSON Validatorjson-validate
Sample input
{"user":"alice","roles":["admin","editor"],"active":true} Expected output
Valid JSON
This pair is executed against the real tools at build time (tests/unit/recipes.test.ts) — the expected output is verified, not illustrative.
Related workflows
You might also need
Workflows sharing tools or topics with this recipe.