Repair malformed JSON
json_repairRepair common malformed JSON (single quotes, trailing commas, unquoted keys) and return valid structured JSON. Paid: $0.005 USDC per call via x402 on Base. Calling without payment returns the payment requirement; invalid input is not charged.
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": {
"input": "<input>"
},
"name": "json_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Malformed JSON text to repair, e.g. {'hello':'world',} |