{"uid":"cap_A1hxL2CMycIckSWQWb9JN","slug":"toll402-json-repair-aab98e31","name":"Toll402 JSON Repair","description":"The OpenRouter for AI-agent tools: one gateway, one wallet, every capability. Built-in tools, forged tools, a global verified business directory and 2,000+ aggregated x402 services, all paid per call in USDC via x402 (HTTP 402). No signup, no API key.","url":"https://toll402.dev/v1/x/ba15e020bb90?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"The malformed JSON text to repair."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.00115","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.00115/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00115","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00115","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Yq0NoeqSgoDRe7ARpk9_o","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.00115","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 and returns a valid, corrected JSON string","exampleAgentPrompt":"Can you fix this broken JSON for me? It's got missing quotes and a trailing comma: {name: 'Alice', age: 30,}","exampleUseCases":[{"title":"Fixing LLM-generated broken JSON","prompt":"The model returned some JSON but it's not valid — there are single quotes and a trailing comma at the end. Can you repair it so I can parse it properly? Here it is: {\"name\": 'Bob', \"role\": \"admin\",}"},{"title":"Recovering corrupted API response","prompt":"I got a JSON response from an external API but it looks like it got truncated or mangled — it won't parse. Can you try to repair it? The text is: {\"items\":[{\"id\":1,\"value\":\"foo\"},{\"id\":2,\"value\":\"bar\""},{"title":"Sanitizing user-submitted JSON config","prompt":"A user pasted a config file as JSON but it has syntax errors — unquoted keys and missing brackets. Can you fix it and give me back valid JSON? Here's what they submitted: {host: 'localhost', port: 8080, debug: true"}],"resultDescription":"Returns a corrected, valid JSON string derived from the malformed input, with syntax errors such as trailing commas, single quotes, unquoted keys, missing brackets, and other common issues resolved.","failureModes":["Input is so severely malformed that no valid JSON can be inferred — returns an error or best-effort partial result","Input is not JSON-like at all (e.g. plain text or XML) — repair may fail or produce nonsensical output","Payment failure via x402 if wallet lacks sufficient USDC on Base — HTTP 402 response","Network timeout or upstream gateway error from Toll402"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call JSON repair with no API key setup, especially within an agentic workflow that already uses x402/USDC payments on Base. It is ideal for fixing LLM-generated JSON, recovering corrupted API responses, or sanitizing user-submitted JSON configs without spinning up your own repair logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:35:26.691Z","isFirstParty":false,"canonicalSlug":"toll402-json-repair-aab98e31"}