JSON formatter
json_formatValidate JSON and re-print it with an indent of 2 or 4 spaces, or minified with indent 0. Use to check whether a string is valid JSON or to make it readable. Runs locally. Returns the formatted JSON, or the parser's error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The JSON text. | |
| indent | No | Spaces per level: 0 (minify), 2 or 4. Default 2. |