{"uid":"cap_eNwqc1AfLXcqvgrMdGM3F","slug":"fiatdock-webhook-json-repair-17592998","name":"FiatDock Webhook/JSON Repair","description":"Pay-per-call: Webhook/JSON Repair","url":"https://fiatdock.com/s/svc_04a86288-1d0c-4b7d-9fda-241d4eb99927?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"method":{"type":"string","description":"e.g. tools/call"},"params":{"type":"object","description":"the seller's own tool name + arguments. The example body above is EMPTY on purpose: this listing's required arguments are not published here, and a call missing one can come back as an argument error, which is settled as your call. Read the callable shape of every tool on this seller's server free at GET https://fiatdock.com/v1/marketplace/services/svc_04a86288-1d0c-4b7d-9fda-241d4eb99927?include=schemas"},"jsonrpc":{"type":"string","description":"\"2.0\" — the body is forwarded VERBATIM to the seller's MCP endpoint, so send whatever that server expects"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qZYb9ecy4V7zUdwAgiTOL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed or broken JSON/webhook payloads, returning a corrected, valid JSON structure","exampleAgentPrompt":"This JSON payload from our webhook handler is broken and won't parse — can you repair it and give me back valid JSON? Here's the broken string: {\"name\": \"Alice\", \"age\": 30, \"tags\": [\"dev\", \"admin\",}","exampleUseCases":[{"title":"Recovering broken webhook payload","prompt":"Our payment webhook just received a malformed JSON body that's failing to parse — something like {\"event\":\"charge.completed\",\"amount\":50.00,\"currency\":\"USD\",\"meta\":{\"user_id\":42,} — can you fix it and return valid JSON so we can process the event?"},{"title":"Fixing LLM-generated malformed JSON","prompt":"The language model returned this JSON response but it has a syntax error and my app can't parse it: {\"result\": \"success\", \"items\": [{\"id\": 1, \"label\": \"foo\"}, {\"id\": 2, \"label\": \"bar\",]} — please repair it into valid JSON."},{"title":"Salvaging corrupted API response data","prompt":"I got this mangled JSON back from a third-party API call and it's missing a closing brace or has a trailing comma somewhere: {\"status\":\"ok\",\"data\":{\"count\":5,\"records\":[1,2,3,4,5]},} — fix it so I can extract the records without crashing."}],"resultDescription":"A corrected, valid JSON object parsed from the supplied broken input, with syntax errors such as trailing commas, mismatched brackets, unclosed strings, or invalid tokens resolved. The response is returned as a structured JSON object via the MCP/JSON-RPC relay.","failureModes":["Input JSON is too severely corrupted to recover meaningful structure — returns an argument or parsing error","Required 'body' field missing or malformed request to the MCP endpoint — returns argument error settled as a charged call","Downstream seller MCP server unavailable — relay returns a connectivity or timeout error","Ambiguous repair cases where multiple valid interpretations exist — may return one interpretation without guarantee of intent fidelity"],"whenToPreferThis":"Choose this endpoint when you have a JSON string or webhook body that fails standard JSON parsing due to syntax errors (trailing commas, unmatched brackets, missing quotes, etc.) and you need a best-effort corrected version returned instantly. Prefer it over writing custom repair logic when operating in agent workflows where broken third-party or LLM-generated JSON must be recovered on the fly at low cost ($0.10 per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:39:20.412Z","isFirstParty":false,"canonicalSlug":"fiatdock-webhook-json-repair-b0e83945"}