format_json
Transform unformatted JSON strings into readable, indented output. Optionally sort object keys and control indentation level.
Instructions
Format JSON with pretty printing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_string | Yes | JSON string to format | |
| indent | No | Number of spaces for indentation (default: 2) | |
| sort_keys | No | Whether to sort object keys (default: False) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |