{"uid":"cap_-FenKpp3zqnVGtn9nmFoB","slug":"keyronne-json-repair-e82a64fb","name":"Keyronne JSON Repair","description":"Repair malformed JSON text into valid parsed JSON: markdown code fences, single quotes, smart quotes, unquoted keys, trailing commas, comments, Python literals (True/None), raw newlines in strings, and truncated output (auto-closes strings, arrays and objects). Returns the parsed value plus a log of every repair applied. Built for LLM output that almost parses. POST a JSON body like: {\"text\":\"```json\\n{name: 'Ada', age: 36, tags: ['x',], active: True\"}","url":"https://keyronne.com/api/json-repair","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The malformed JSON text to repair."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.92","successRate":"1.00","reviews":1,"stars":"4.7","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HdVZcTCT2zP6Yn_7NmEZb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed JSON text (from LLM output or other sources) into valid parsed JSON, returning the corrected value plus a log of all repairs applied.","exampleAgentPrompt":"This JSON from the LLM response is broken — it has unquoted keys, single quotes, and a trailing comma: `{name: 'Ada', age: 36, tags: ['x',], active: True}` — can you repair it into valid parsed JSON and tell me what was fixed?","exampleUseCases":null,"resultDescription":"Returns the fully parsed JSON value (as a proper JSON object/array/primitive) and a detailed log listing every repair operation that was applied, such as quote normalization, removal of trailing commas, closure of truncated strings/arrays/objects, and conversion of Python literals.","failureModes":["Input is so severely malformed that no repair heuristic can produce a valid JSON structure — returns an error or best-effort partial result","Input is empty or missing the 'text' field — returns a 400-level error","Input contains binary or non-text data that cannot be interpreted as JSON — repair fails","Extremely long truncated JSON may close with incorrect structure inference"],"whenToPreferThis":"Choose this endpoint when processing LLM-generated output that almost-but-not-quite parses as JSON — especially when it contains markdown code fences, Python-style booleans (True/None), single or smart quotes, unquoted keys, trailing commas, inline comments, or is cut off mid-structure. Prefer it over writing custom regex fixes or using a generic JSON parser that will simply throw on malformed input.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-07-23T14:10:27.481Z","lastSuccessfullyRanAt":"2026-07-23T14:10:27.481Z","lastHealthCheckAt":"2026-09-14T12:51:07.575Z","isFirstParty":false}