json_format
Parse and reformat JSON strings with configurable indentation. Validate, pretty-print, or minify JSON for readability or size reduction.
Instructions
Parse and reformat a JSON string with a configurable indent level (0 = minified, 2 = standard pretty-print). Use to pretty-print, validate, or minify JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The JSON string to parse and reformat. | |
| indent | No | Indentation spaces (0–8). 0 = minified. Default 2. |