JSON formatter and validator
json_formatterFormat, minify or validate JSON text while preserving number tokens.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sort": true,
"text": "{\"b\":2,\"a\":1}"
},
"name": "json_formatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | ||
| text | Yes | ||
| action | No | format | |
| indent | No | 2 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||