{"uid":"cap_O1Xwlk0tY-tnzSDgA_OM0","slug":"avedaris-json-repair-16b5dc52","name":"AveDaris JSON Repair","description":"AveDaris is the economic coordination layer for autonomous software: discover, route, evaluate, procure, verify, and learn across agent services.","url":"https://api.avedaris.com/v1/paid/json-repair","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"Malformed JSON text to repair."}}},"responseSchema":{"type":"json","example":{"result":{"repaired":{"hello":"world"}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QE4Rmf5cUtbsiK3vtgP2T","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed JSON strings and returns a valid, parsed JSON object","exampleAgentPrompt":"This JSON string came back from an API and it's broken — can you fix it so it's valid JSON? Here it is: {hello: 'world', missing_quote: true,}","exampleUseCases":[{"title":"Fix LLM output JSON errors","prompt":"The language model returned this JSON but it has syntax errors — trailing commas and unquoted keys. Can you repair it so I can parse it properly? Here's the broken JSON: {name: 'Alice', scores: [10, 20, 30,], active: true}"},{"title":"Recover corrupted API response","prompt":"I got this malformed JSON back from a third-party API call and my code is throwing a parse error. Can you fix it for me? The broken text is: {\"user\":\"bob\",\"email\":\"bob@example.com\"\"role\":\"admin\"}"},{"title":"Clean up hand-written JSON config","prompt":"Someone edited this config file by hand and broke the JSON — there are missing commas and a stray bracket. Please repair it so it's valid: {\"host\": \"localhost\" \"port\": 8080 \"debug\": true}}"}],"resultDescription":"A JSON object containing a `result.repaired` field with the fully parsed and corrected JSON structure, ready to use programmatically without further parsing.","failureModes":["Input is so severely malformed that no valid repair is possible — may return an error or best-guess structure","Input is not JSON at all (e.g. plain prose or binary data) — repair may fail or produce nonsensical output","Ambiguous JSON structures where multiple valid repairs exist — one interpretation chosen arbitrarily","Extremely large inputs may be truncated or rejected","Network or payment failure returns a 402 or 5xx error"],"whenToPreferThis":"Choose this endpoint when you have a string that is almost valid JSON but fails to parse due to common syntax errors like trailing commas, unquoted keys, missing brackets, or extra characters. It is ideal for cleaning up LLM-generated JSON, hand-edited config files, or API responses with minor formatting defects. Prefer this over manual regex fixes or writing custom parsers when you need a quick, reliable, pay-per-use repair with no infrastructure setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:02:35.307Z","isFirstParty":false}