JSON prettify / minify
json_formatValidate JSON and format it by pretty-printing or minifying, with optional key sorting to clean up and standardize data.
Instructions
Validate JSON and pretty-print or minify it, optionally sorting keys. (Same as IT-Tools /json-prettify.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"json": "<json>"
},
"name": "json_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | ||
| indent | No | 0 minifies | |
| sortKeys | No |