{"uid":"cap_J-Psw9RDwE6U-a-S0HGem","slug":"agentkit-json-repair-eaef37a8","name":"AgentKit JSON Repair","description":"Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.","url":"https://api.firstmention.uk/s/agentkit/repair?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"},"budget":{"type":"number"}}},"responseSchema":{"type":"json","example":{"repaired":"{\"a\": 1, \"b\": [1,2,3], \"c\": null}"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Apjvu-WNqf1UBfC56fZus","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 by fixing common syntax errors such as unquoted keys and trailing commas, returning the corrected parsed value","exampleAgentPrompt":"Can you fix this broken JSON for me? It has unquoted keys and trailing commas: `{a: 1, b: [1,2,3,], c: null,}`","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"The JSON that came back from my language model has unquoted keys and trailing commas — can you repair it so I can actually parse it? Here it is: `{name: \"Alice\", scores: [98, 87, 95,], active: true,}`"},{"title":"Recover scraped JSON data","prompt":"I scraped some JSON from a webpage but it's broken — has missing quotes around keys and stray commas. Can you clean it up and give me the valid parsed value? The raw string is: `{title: 'Report', items: [\"a\",\"b\",],}`"},{"title":"Validate and auto-correct config file JSON","prompt":"My config JSON file won't parse — I think there are trailing commas or unquoted keys somewhere. Can you repair it and tell me what was fixed? Here's the content: `{host: \"localhost\", port: 8080, debug: true,}`"}],"resultDescription":"Returns a JSON object with: 'ok' (boolean success), 'fixes' (array of human-readable descriptions of what was corrected, e.g. 'quoted unquoted object key(s)', 'removed trailing comma(s)'), 'value' (the fully parsed and corrected JSON value), and 'changed' (boolean indicating whether any repairs were made).","failureModes":["Input JSON is so severely malformed it cannot be repaired — returns ok:false or error","Input is not a string — schema mismatch error","Empty or null input — may return error or unchanged result","JSON with structural issues beyond trailing commas and unquoted keys may not be fully repaired","Payment failure via x402 — 402 response with payment instructions"],"whenToPreferThis":"Use this endpoint when you have a JSON string with common, recoverable syntax errors like unquoted object keys or trailing commas — typical output from LLMs, hand-written configs, or loosely-parsed web scrapes. Prefer this over a full JSON validator when you want auto-correction rather than just error reporting, and when you need the repaired parsed value back immediately in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T18:38:11.233Z","isFirstParty":false,"canonicalSlug":"agentkit-json-repair-eaef37a8"}