{"uid":"cap_rTvJeFKPGoO2sxdy_q3KZ","slug":"aizamon-json-repair-api-0676477a","name":"Aizamon JSON Repair API","description":"Get repaired JSON for ?q=, including fences, comments, trailing commas, single quotes, unquoted keys, and Python True, False, and None. The repaired text, the changes, and the value come back together. $0.01 USDC. Included in the hour pass. Includes a signed Ed25519 receipt you can check with the published key.","url":"https://aizamon.com/x402/v1/json?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"Broken JSON. Returns the repaired text and the value."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ok":{"type":"boolean"},"sku":{"type":"string"},"result":{"type":"object"},"protocol":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"sku":"SKU_AG_JSON_01","result":{"json":{"ok":true,"value":{"a":1},"changes":["trailing comma"],"repaired":true}},"protocol":"x402"}},"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__QUDLPXwgZOYuPEnoFnX8","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":"Accepts broken or malformed JSON strings, repairs syntax errors, and returns the corrected JSON object along with a list of changes made.","exampleAgentPrompt":"Can you repair this broken JSON for me — it has a trailing comma and won't parse: '{\"a\":1,\"b\":2,}'?","exampleUseCases":[{"title":"Fix malformed API response JSON","prompt":"I got this JSON back from a third-party API but it has a trailing comma and my parser chokes on it — can you fix it so it's valid? Here's the string: '{\"name\":\"Alice\",\"score\":42,}'"},{"title":"Repair user-submitted config file","prompt":"A user pasted their config as JSON but forgot to close a bracket. Can you repair '{\"theme\":\"dark\",\"lang\":\"en\"' and tell me what was changed?"},{"title":"Clean up LLM-generated JSON output","prompt":"My language model generated this JSON but it has syntax issues — can you run it through the JSON repair tool and give me back a valid object? Here it is: '{\"items\":[1,2,3,],\"ok\":true}'"}],"resultDescription":"Returns a JSON object with an 'ok' boolean, a SKU identifier ('SKU_AG_JSON_01'), and a 'result' object containing the repaired JSON value, a boolean 'repaired' flag, and an array 'changes' listing what was fixed (e.g. 'trailing comma'). The protocol field confirms x402 payment rail.","failureModes":["Missing required 'q' query parameter returns error","Input too large or complex may fail to repair","Structurally ambiguous JSON where missing values cannot be inferred returns partial result without invented values","Network or payment authorization failure returns 402"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call JSON syntax repair service that fixes common issues like trailing commas, missing brackets, and minor syntax errors without inventing missing values. Ideal for agent pipelines that frequently encounter malformed JSON from LLMs, user input, or third-party APIs and need a cheap, fast fix-up step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T18:31:51.716Z","isFirstParty":false,"canonicalSlug":"aizamon-json-repair-api-0676477a"}