{"uid":"cap_fnmTEQKrrC6l2VqQrkEp5","slug":"x402-hub-json-repair-9679c17f","name":"X402 Hub JSON Repair","description":"63 paid API endpoints protected by x402 micropayments on Base","url":"https://x402-hub.vercel.app/api/json-repair?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"Query parameter for the API"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object","description":"Response data from upstream API"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aCyIudOa1eVhjM3CcJO0u","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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 strings and returns a valid, corrected JSON object","exampleAgentPrompt":"Can you repair this broken JSON for me? It's throwing parse errors: {name: 'Alice', age: 30, hobbies: ['reading', 'coding'} — fix the syntax so it's valid JSON.","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"My language model returned this JSON but it has missing quotes and a trailing comma — can you repair it so I can parse it in my app? Here it is: {\"name\": Alice, \"score\": 95,}"},{"title":"Recover corrupted API response","prompt":"I got a JSON response from an upstream API that got truncated mid-transmission. Can you repair this incomplete JSON and give me back a valid object? Here's what I have: {\"users\": [{\"id\": 1, \"name\": \"Bob\"}, {\"id\": 2"},{"title":"Clean up hand-written JSON config","prompt":"I manually wrote this JSON config file and I think I made some syntax mistakes — fix it so it's valid: {server: 'localhost', port: 8080, 'features': [debug, logging,]}"}],"resultDescription":"Returns a JSON object containing a 'data' field with the repaired, syntactically valid JSON. The corrected JSON preserves the original data structure and values while fixing issues such as missing quotes, trailing commas, mismatched brackets, and other syntax errors.","failureModes":["Input JSON is so corrupted that the structure cannot be inferred — returns best-effort repair or error","Empty or null query string provided — likely returns an error response","Input is not JSON-like at all (e.g. plain text or binary data) — repair may produce unexpected output","Payment failure via x402 micropayment — HTTP 402 returned before processing occurs"],"whenToPreferThis":"Use this endpoint when you have a JSON string that fails to parse due to syntax errors and need a quick, automated repair without writing custom parsing logic. Ideal for fixing LLM-generated JSON, truncated API responses, or hand-written configs. At $0.05 USDC per call via x402 micropayments, it's cost-effective for occasional repairs in agent pipelines that handle unreliable JSON sources.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:44:59.423Z","isFirstParty":false,"canonicalSlug":"x402-hub-json-repair-9679c17f"}