{"uid":"cap_0NMxRKJ89qWDRXDrouh8U","slug":"agentdiet-json-fix-json-repair-normalization-endpoint-e5bb67f4","name":"AgentDiet JSON Fix — JSON Repair & Normalization Endpoint","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-fix?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_WDaWmvkhZ53BCJAh_w3W9","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":"Accepts malformed or bloated JSON via query parameter and returns a cleaned, fixed, compressed JSON object with a compression ratio proof","exampleAgentPrompt":"This JSON response I got is broken and won't parse — can you run it through AgentDiet's JSON fixer to repair the syntax and get me back a clean, valid JSON object?","exampleUseCases":[{"title":"Repair LLM-generated malformed JSON","prompt":"The model returned this JSON but it has unescaped quotes and missing commas — can you send it to AgentDiet's JSON fix endpoint to get a valid, parseable version back?"},{"title":"Compress bloated API response JSON","prompt":"This API payload is huge and eating up my context window — can you pass it through AgentDiet's JSON fixer to compress and clean it so I can work with it more efficiently?"},{"title":"Validate JSON before pipeline ingestion","prompt":"Before I push this JSON into the data pipeline, can you run it through AgentDiet's JSON repair service to make sure it's well-formed and get back a proof of how much it was compressed?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the fixed/normalized JSON, a 'status' field indicating success (e.g. 'ok'), and an 'roi_proof' object containing a compression_ratio_pct value showing how much the input was reduced (e.g. 91.4%).","failureModes":["Missing or empty raw_json query parameter returns an error response","Completely unparseable or binary input may fail with no valid output","Extremely large payloads may exceed processing limits","Network timeout if the service node is unavailable","Payment failure via x402/L402 if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.002 USDC), deterministic repair and normalization of malformed or bloated JSON strings — especially in agentic pipelines where LLM outputs frequently produce broken JSON or where context window token budgets are a concern. Prefer this over manual parsing libraries when you want a hosted, pay-per-use microservice with a compression ratio proof included in the response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:07.084Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-fix-json-repair-normalization-endpoint-e5bb67f4"}