{"uid":"cap_ST7K6TM1oOm8DRxOTWH-M","slug":"cheap-utilities-json-repair-805e27ba","name":"Cheap Utilities JSON Repair","description":"Repair broken JSON: trailing commas, single quotes, bare keys, comments, Python None/True, missing brackets. Returns parsed.","url":"https://cheap-utilities.x402tookit.com/json-repair?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"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"The broken JSON text (up to 4000 characters)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"parsed":{"type":["null","object"],"properties":{"name":{"type":["null","string"]},"note":{},"tags":{"type":["array","null"],"items":{"type":"string"}},"active":{"type":["boolean","null"]}}},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"repairs":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"repairedText":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cy_QI70cEFJiIKvbWq0Cb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed JSON (trailing commas, single quotes, bare keys, comments, Python literals, missing brackets) and returns the parsed result","exampleAgentPrompt":"Can you fix this broken JSON for me? It has trailing commas and single quotes so it won't parse: {'name': 'Alice', 'active': True, 'tags': ['admin', 'user',]}","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"The AI returned this JSON but it has bare keys and Python-style None values — can you repair it so I can actually parse it? Here's the text: {name: 'Bob', score: None, active: True}"},{"title":"Clean up scraped JSON with comments","prompt":"I scraped some JSON from a config file and it has // comments and trailing commas in it — can you strip those out and give me a valid parsed object? The text is: {// config\n\"timeout\": 30, \"retries\": 3,}"},{"title":"Recover JSON with missing closing brackets","prompt":"I've got a JSON snippet that got truncated and is missing its closing brackets — can you repair and parse it? Here it is: {\"users\": [{\"id\": 1, \"name\": \"Alice\"}, {\"id\": 2, \"name\": \"Bob\""}],"resultDescription":"Returns an object containing: the parsed JSON object (if repair succeeded), the repaired JSON text string, a list of specific repairs that were applied, a summary and verdict, a degraded flag indicating partial recovery, and a disclaimer if applicable","failureModes":["Input text exceeds 4000 characters — request will be rejected or truncated","JSON is too structurally corrupted to recover — parsed field returns null with a verdict indicating failure","Ambiguous malformed input where multiple valid repairs are possible — one interpretation chosen without guarantee","Non-JSON input (e.g. XML, CSV) — will fail to parse and return null result"],"whenToPreferThis":"Choose this endpoint when you have a known malformed or non-standard JSON string that needs to be repaired and parsed in one step — especially for LLM-generated JSON, scraped config files, Python serialized dicts, or hand-written JSON with linting errors. It handles a broad set of common JSON syntax violations in a single cheap call. Prefer it over writing custom fix logic or calling a general-purpose LLM when the input is under 4000 characters and you need deterministic repair with an audit trail of what was changed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:12:40.384Z","isFirstParty":false,"canonicalSlug":"cheap-utilities-json-repair-805e27ba"}