{"uid":"cap_huEIkIl1HvjnEhFC67qJH","slug":"agentdiet-json-repair-4855bb64","name":"AgentDiet JSON Repair","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.","url":"https://status.agentdiet.dev/v1/json-repair?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"raw_json":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NI-U9JT9bUS3Odbj6lqO8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs and cleans malformed JSON strings, returning a valid JSON object with compression metadata.","exampleAgentPrompt":"Can you repair this malformed JSON for me? It has some missing quotes and a trailing comma: {name: 'Alice', age: 30, hobbies: ['reading', 'coding',]}","exampleUseCases":[{"title":"Fix LLM-generated JSON output","prompt":"The JSON that came back from the language model is broken — it has unquoted keys and a dangling comma at the end. Can you repair it so I can actually parse it? Here it is: {user: 'bob', score: 42, tags: ['ai', 'ml',]}"},{"title":"Recover malformed API response","prompt":"I got a JSON response from a third-party API that won't parse — it looks like it got truncated and is missing a closing bracket. Can you fix it and give me back valid JSON? The raw string is: {\"id\":123,\"name\":\"test\",\"data\":[1,2,3}"},{"title":"Clean up scraped JSON data","prompt":"I scraped some structured data from a webpage and the JSON is a mess — single quotes instead of double quotes, some keys aren't quoted at all. Can you run it through a JSON repair to make it valid? Here's the raw text: {name: 'Acme Corp', founded: 1990, active: true}"}],"resultDescription":"Returns a JSON object with a 'data' field containing the repaired JSON, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%), confirming the repair and any token reduction.","failureModes":["Input JSON is too severely corrupted to repair — returns error status","Missing required 'raw_json' query parameter — returns validation error","Input is not JSON-like at all (e.g. plain text or binary) — unpredictable behavior","Payment failure via x402/USDC on Base — request rejected before processing"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, paid-per-call JSON repair service that also reports compression ratio — useful in agentic pipelines where you want reliable JSON fixing without spinning up your own parser logic, and where micro-payment via USDC/x402 is acceptable. Prefer over ad-hoc LLM-based JSON fixing when you need consistency and auditability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:29.271Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-4855bb64"}