{"uid":"cap_4FR5RdZDIoJ0vulNSwSbB","slug":"agent-data-bench-json-repair-c2ad1496","name":"Agent Data Bench – JSON Repair","description":"Repair almost-JSON produced by LLMs: strips markdown code fences, normalises smart quotes, removes comments and trailing commas, then parses. Returns the parsed value plus the list of repairs applied, or a precise parse error. Pure computation, no upstream data.","url":"https://x402.deepsense.stream/api/v1/json/repair?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The JSON-like string to repair"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rKrBWN1by35U9xq90kFzS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed LLM-produced JSON by stripping markdown fences, normalizing smart quotes, removing comments and trailing commas, then returning the parsed value and a list of applied repairs or a precise parse error.","exampleAgentPrompt":"This JSON from the LLM response is broken — it has markdown fences, smart quotes, and a trailing comma. Can you repair it and give me the parsed value plus a list of what was fixed? Here it is: ```json {\"name\": \"Alice\", \"age\": 30, } ```","exampleUseCases":[{"title":"Fix LLM pipeline JSON output","prompt":"The language model returned a JSON blob wrapped in triple backticks with a trailing comma after the last field — my parser is choking on it. Can you repair it and tell me what changes were made? Here's the raw output: ```json {\"status\": \"ok\", \"count\": 42, } ```"},{"title":"Clean smart quotes from AI response","prompt":"My AI assistant returned JSON with curly smart quotes instead of straight ones and it won't parse. Fix this string and list all the repairs applied: { \\"},{"title":"hello","prompt":"world"}],"resultDescription":"done","failureModes":[],"whenToPreferThis":"always","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T11:36:51.806Z","isFirstParty":false,"canonicalSlug":"agent-data-bench-json-repair-c2ad1496"}