{"uid":"cap_KhapevPwWcq41zxKWC7Ax","slug":"grokzilla-json-repair-7359d20a","name":"Grokzilla JSON Repair","description":"Repair malformed or truncated JSON from LLMs, JS or Python: strips ```json fences and comments, fixes trailing commas, single quotes, unquoted keys, True/False/None, missing commas and unclosed strings/brackets. Returns the parsed JSON, a compact repaired JSON string and the list of fixes. Deterministic, no network.","url":"https://grokzilla.shop/api/skills/json-repair?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":400000,"minLength":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0041","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.0041/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0041","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0041","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RtKdG7Dvz1kyVpPIIT2Uk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0041","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed or truncated JSON (from LLMs, JS, or Python) by fixing fences, comments, trailing commas, single quotes, unquoted keys, and unclosed structures, returning the parsed object, a compact repaired string, and a list of applied fixes.","exampleAgentPrompt":"The JSON I got back from the LLM is broken — it has backtick fences, trailing commas, and some Python-style True/False values. Can you repair it and give me back the fixed parsed object along with a list of what was changed?","exampleUseCases":[{"title":"Fix LLM JSON with code fences","prompt":"The GPT-4 response I got is wrapped in ```json fences and has trailing commas — can you repair that JSON so I can actually parse it? Here's the raw text: ```json {\"name\": \"Alice\", \"active\": True, } ```"},{"title":"Repair Python-style JSON payload","prompt":"I have a JSON-like string from my Python script that uses True, False, and None instead of the proper JSON values, plus some single-quoted keys. Can you fix it and return the valid JSON along with what was changed?"},{"title":"Recover truncated API response JSON","prompt":"My API returned a partial JSON that got cut off mid-string and has an unclosed bracket. Can you repair it and tell me exactly what fixes were applied so I know what data might be missing?"}],"resultDescription":"Returns three things: the fully parsed JSON object (ready to use programmatically), a compact repaired JSON string, and an ordered list of fixes that were applied (e.g. 'removed ```json fence', 'replaced trailing comma', 'converted True→true'). No network calls are made; processing is fully deterministic and local.","failureModes":["Input is so severely malformed that no valid structure can be inferred — returns an error or empty result","Input exceeds 400,000 character limit — rejected with a validation error","Input is valid JSON already — returned as-is with an empty fixes list (not a failure, but callers should be aware)","Ambiguous repair choices (e.g. multiple interpretations of broken nesting) may produce unexpected but valid JSON"],"whenToPreferThis":"Choose this endpoint when you need deterministic, offline-safe JSON repair with an explicit audit trail of changes applied — especially for cleaning LLM outputs that use Python-style literals, markdown fences, or non-standard syntax. Prefer it over a general LLM re-prompting approach when you want reproducible results without network round-trips or hallucination risk, and when you need the specific list of fixes for logging or debugging.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:36:54.190Z","isFirstParty":false,"canonicalSlug":"grokzilla-json-repair-7359d20a"}