{"uid":"cap_gkuTwbZyl0fgxJ7upxjS2","slug":"agent-data-toolkit-json-repair-91014ef4","name":"Agent Data Toolkit – JSON Repair","description":"Repair malformed JSON (truncated, single quotes, trailing commas, LLM output artifacts) into valid JSON.","url":"https://agent-data-toolkit.onrender.com/repair","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","required":["method"],"properties":{"body":{"type":"object","required":["broken"],"properties":{"broken":{"type":"string","description":"string, the malformed JSON text (required)"},"schema":{"type":"object","description":"object, optional JSON Schema to validate the result against"}}}}},"output":{"type":"object","properties":{"example":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"},"error":{"type":"string"},"worker":{"type":"string"},"repaired":{},"schema_error":{"type":"string"},"schema_valid":{"type":"boolean"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_ynhYA0QLriOfY7vCGlytG","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":"Repairs malformed JSON (truncated, single-quoted, trailing commas, LLM output artifacts) into valid, parseable JSON.","exampleAgentPrompt":"This JSON I got back from the LLM is broken — it has single quotes, a trailing comma, and a truncated array. Can you repair it into valid JSON: {name: 'Alice', scores: [10, 20,}","exampleUseCases":null,"resultDescription":"Returns a valid, well-formed JSON object or array that has been corrected from the malformed input. Fixes issues including single quotes, trailing commas, truncated structures, unescaped characters, and other common LLM output artifacts.","failureModes":["Input is so severely malformed that structure cannot be inferred — returns error indicating unrecoverable JSON","Input is not JSON at all (e.g. plain text or binary) — returns error or empty result","Ambiguous structure where multiple valid repairs are possible — may return best-guess repair","Service cold-start latency on Render.com free tier — first request may time out after inactivity"],"whenToPreferThis":"Use this endpoint when you have JSON that fails JSON.parse() due to common issues like LLM output artifacts, single quotes, trailing commas, or truncation. Ideal for post-processing LLM-generated structured data before storage or further processing. Prefer this over manual regex cleanup or writing custom parsers for each edge case.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:35:01.567Z","isFirstParty":false}