json_repair
Repairs truncated or malformed JSON strings by fixing unescaped quotes and trailing commas to restore valid, parseable data.
Instructions
Deterministically heals truncated or malformed JSON strings, unescaped quotes, and trailing commas.
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": {
"malformed_json": "<malformed_json>"
},
"name": "json_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| malformed_json | Yes | Malformed JSON string |