{"uid":"cap_2D7YNblOFVKa0T0uDJaMd","slug":"uos-genesis-repair-json-f4bf148a","name":"UOS Genesis repair_json","description":"Repair malformed, invalid, or broken JSON-like text and return valid parseable JSON when recoverable. Useful for fixing machine-generated JSON, API responses, missing quotes, formatting errors, trailing commas, and structured-data ingestion pipelines. Price: $0.003 USDC via x402 on Base.","url":"https://genesis.palsus2023.workers.dev/v1/repair_json","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":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.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_LT7mAcFJnE2jNtrU4ifOf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Attempts to repair and return a valid JSON string from malformed or broken JSON input","exampleAgentPrompt":"This API response I got back has broken JSON — missing a closing bracket and some unquoted keys — can you send it to the JSON repair service and give me back something I can actually parse?","exampleUseCases":[{"title":"LLM output JSON cleanup","prompt":"The language model returned this JSON but it's got syntax errors and won't parse — can you run it through the JSON repair tool and give me the fixed version? Here it is: {name: 'Alice', age: 30, hobbies: ['reading', 'coding'"},{"title":"Corrupted API response recovery","prompt":"I'm getting a malformed JSON response from a third-party API that has an extra comma and a missing closing brace — can you fix it so I can extract the data I need?"},{"title":"User-submitted JSON form data fix","prompt":"A user submitted this config file but it's got badly formatted JSON with some missing quotes around keys — please repair it so we can process their submission: {server: 'prod', port: 8080, debug: true,}"}],"resultDescription":"A repaired, syntactically valid JSON string recovered from the malformed input, ready to be parsed by standard JSON parsers.","failureModes":["Input is so corrupted that no valid JSON can be inferred — may return an error or best-effort partial result","Ambiguous repair cases where multiple valid corrections exist may produce unexpected output","Non-JSON input (e.g. plain text or binary) may fail or return an empty result","Payment failure (402) if the x402 payment header is missing or insufficient"],"whenToPreferThis":"Choose this endpoint when you have a JSON string that fails to parse due to syntax errors, missing brackets, unquoted keys, trailing commas, or similar structural issues, and you need a quick programmatic repair without writing custom parsing logic. It is part of a suite of utility functions available on the same host, making it convenient when you are already using other UOS Genesis utilities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:39:50.473Z","isFirstParty":false}