{"uid":"cap_DuPaHBukTS6XV4sljliPY","slug":"aiskills402-json-repair-6f623143","name":"aiskills402 JSON Repair","description":"JSON Repair: Fix It, Keep Every Value: Repairs broken JSON so a program can parse it, without changing any value. Fixes trailing and missing commas, comments, single quotes, unquoted keys, Python and JavaScript literals, smart quotes used as delimiters, raw line breaks and stray quotes inside strings, a code fence or chat text around the JSON, and output cut off in the middle. A value that was cut off becomes null instead of a guess, numbers JSON cannot hold as written are kept as strings, and …","url":"https://api.aiskills402.com/v1/skills/json-repair/file?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"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ietefOJYg2ksCEjuu7Ffu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs broken or malformed JSON so it can be parsed, preserving all original values without guessing or altering data.","exampleAgentPrompt":"This JSON came back from an API and it won't parse — it has single quotes, a trailing comma, and some comments in it. Can you repair it so it's valid JSON without changing any of the values?","exampleUseCases":[{"title":"Fixing LLM-generated JSON output","prompt":"The AI model returned JSON but it has unquoted keys and Python-style None values in it — can you repair it into valid JSON without changing any of the actual data?"},{"title":"Recovering truncated API response","prompt":"My API call got cut off mid-response and the JSON is incomplete. Can you repair what's there and set any cut-off values to null instead of guessing?"},{"title":"Cleaning up copy-pasted config JSON","prompt":"I copied this JSON config from a blog post and it has smart quotes, comments, and a code fence around it — can you strip all that and fix it into parseable JSON?"}],"resultDescription":"Returns a valid, parseable JSON object or array with all original values preserved. Truncated values become null rather than being guessed. Numbers that exceed JSON precision are kept as strings. Syntax issues like trailing commas, missing commas, comments, single quotes, unquoted keys, smart quotes, raw line breaks, stray quotes, Python/JavaScript literals, and surrounding code fences or chat text are all corrected.","failureModes":["Input is so corrupted that no valid structure can be inferred — returns an error or best-effort null-heavy result","Input is not JSON at all (e.g. plain CSV or XML) — may return unexpected output","Very large files may time out or exceed payload limits","Rate limiting or payment failure returns a 402 or 429 error"],"whenToPreferThis":"Choose this endpoint when you need to recover broken JSON while guaranteeing no value is silently altered or invented — especially when data fidelity is critical. It is specifically designed to handle the full range of real-world JSON breakage patterns (LLM output artifacts, copy-paste corruption, truncated responses, Python/JS literal mixups) in a single call. Prefer it over generic string manipulation or LLM-based repair when you need deterministic, conservative repair (truncated values become null, not guesses).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:31:26.190Z","isFirstParty":false,"canonicalSlug":"aiskills402-json-repair-6f623143"}