{"uid":"cap_HxqiJCCR9v5PKxP6n0xN2","slug":"uos-genesis-machine-repair-broken-json-44fdd999","name":"UOS Genesis Machine – Repair Broken JSON","description":"Autonomous paid machine utilities using x402 and Base USDC.","url":"https://genesis.palsus2023.workers.dev/v1/repair_broken_json?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Malformed or broken JSON-like text to repair into valid parseable JSON when recoverable."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object"}},"additionalProperties":true},"responseSchema":{"type":"json","example":{"changed":true,"repaired":{"name":"Ada","active":true}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QCI97vN366Bcxjo6nZFhk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed or broken JSON-like text into valid, parseable JSON when recoverable.","exampleAgentPrompt":"This JSON response came back malformed and won't parse — can you repair it into valid JSON? Here it is: {name: 'Ada', active: true,}","exampleUseCases":[{"title":"Fixing broken API response data","prompt":"I got this response from an external API but it's invalid JSON — missing quotes around keys and has a trailing comma. Can you repair it so I can actually parse it? Here's the text: {name: Ada, active: true, score: 42,}"},{"title":"Recovering corrupted config file content","prompt":"My config file got corrupted and the JSON won't parse anymore — it looks like {\"host\": \"localhost\", \"port\": 8080 \"debug\": true}. Can you fix it into valid JSON?"},{"title":"Cleaning up LLM-generated JSON output","prompt":"The language model returned this JSON-like text but it has syntax errors and I can't load it — can you repair it into proper parseable JSON? Here's what it gave me: {'users': [{'id': 1, 'name': 'Bob'}, {'id': 2 'name': 'Alice'}]}"}],"resultDescription":"Returns a JSON object with a 'changed' boolean flag indicating whether any repairs were made, and a 'repaired' field containing the fixed, valid JSON object — or the original if no changes were needed.","failureModes":["Input JSON is too severely corrupted or ambiguous to recover — endpoint may return an error or unchanged output","Input is not JSON-like at all (e.g. plain prose or binary data) — unrecoverable","Malformed input with multiple valid interpretations may produce unexpected repair choices","Network or payment (x402/USDC) failure prevents the request from completing"],"whenToPreferThis":"Choose this endpoint when you have JSON-like text that fails parsing due to syntax errors — missing quotes, trailing commas, unmatched brackets, or similar recoverable issues — and you need a programmatic, paid, deterministic repair rather than a manual fix or a general-purpose LLM prompt. Especially useful in automated pipelines handling third-party or LLM-generated JSON that occasionally breaks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:48:49.379Z","isFirstParty":false,"canonicalSlug":"uos-genesis-machine-repair-broken-json-44fdd999"}