{"uid":"cap_4GeSH-IhvCM0vGB5t1H7A","slug":"agentproof-murex-vercel-app-ca28db59","name":"AgentProof JSON Repair","description":"JSON repair for AI agents - fix malformed JSON and return structured output.","url":"https://agentproof-murex.vercel.app/json/repair","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"oneOf":[{"type":"object","required":["input"],"properties":{"input":{"description":"Malformed JSON string or JSON-compatible value to repair."}},"additionalProperties":true},{"type":"string","description":"Malformed JSON string to repair."}]},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["service","endpoint","valid","changed","repairedText","parsed","warnings"],"properties":{"valid":{"type":"boolean"},"parsed":{"description":"Any JSON value."},"changed":{"type":"boolean"},"service":{"type":"string","const":"AgentProof"},"endpoint":{"type":"string","const":"json.repair"},"warnings":{"type":"array","items":{"type":"string"}},"repairedText":{"type":"string"}}}}}}},"responseSchema":null,"example":{"request":{"schema":{"type":"object","required":["name","age","city"],"properties":{"age":{"type":"number"},"city":{"type":"string"},"name":{"type":"string"}}},"response":{"age":30,"city":"New York","name":"Alice"}},"response":{"valid":true,"parsed":{"schema":{"type":"object","required":["name","age","city"],"properties":{"age":{"type":"number"},"city":{"type":"string"},"name":{"type":"string"}}},"response":{"age":30,"city":"New York","name":"Alice"}},"changed":false,"service":"AgentProof","endpoint":"json.repair","warnings":[],"repairedText":"{\n  \"response\": {\n    \"name\": \"Alice\",\n    \"age\": 30,\n    \"city\": \"New York\"\n  },\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"name\": {\n        \"type\": \"string\"\n      },\n      \"age\": {\n        \"type\": \"number\"\n      },\n      \"city\": {\n        \"type\": \"string\"\n      }\n    },\n    \"required\": [\n      \"name\",\n      \"age\",\n      \"city\"\n    ]\n  }\n}"}},"exampleRequest":{"schema":{"type":"object","required":["name","age","city"],"properties":{"age":{"type":"number"},"city":{"type":"string"},"name":{"type":"string"}}},"response":{"age":30,"city":"New York","name":"Alice"}},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BYj-PWJoMtz2nVmwM92W5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fixes malformed JSON strings and returns a valid, structured JSON output suitable for AI agent consumption.","exampleAgentPrompt":"This JSON string is broken and won't parse — can you repair it and give me back valid, structured JSON? Here it is: {\"name\": \"Alice\", \"age\": 30, \"city\": \"New York\",.}","exampleUseCases":null,"resultDescription":"Returns a valid, well-formed JSON object reconstructed from the malformed input, with syntax errors corrected, missing delimiters added, and structure normalized for downstream consumption.","failureModes":["Input is so severely corrupted that repair is impossible — returns error or best-effort partial output","Input is not JSON-like at all (e.g., plain text or binary) — may return an error indicating unparseable input","Ambiguous repairs where multiple valid interpretations exist — repair may silently choose one interpretation","Service unavailable or timeout — HTTP 5xx response","Payment not processed correctly — HTTP 402 payment required"],"whenToPreferThis":"Choose this endpoint when an AI agent or pipeline receives malformed, truncated, or syntactically invalid JSON that must be recovered without discarding the data. Especially useful when LLMs produce near-valid JSON with minor errors, or when external APIs return subtly broken payloads. Prefer this over manual parsing logic or regex hacks when you need a reliable, automated repair step in an agent workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:31:54.017Z","isFirstParty":false}