Pretty-print JSON
formatPretty-print a JSON string with configurable indentation (0-8) and return the minified form too. Price: $0.001 USDC per call (x402 v2, Base). Free demo: https://api.zato.org/demo/format
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": "format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON text to pretty-print | |
| indent | No | Spaces per indentation level |