{"uid":"cap_v-_DmWCSwaIA8sqC52KG3","slug":"agentdiet-json-validator-f722ff89","name":"AgentDiet JSON Validator","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-validator?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_h-_KcDl2I1q5TIqryIRz4","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":"Validates raw JSON input and returns a structured validation result with compression ratio proof","exampleAgentPrompt":"Can you validate this JSON string for me and tell me if it's well-formed: '{\"name\":\"Alice\",\"age\":30,\"active\":true}'?","exampleUseCases":[{"title":"Pre-flight JSON payload check","prompt":"Before I send this config payload to the downstream service, can you validate that this JSON is correctly structured: '{\"model\":\"gpt-4\",\"temperature\":0.7,\"max_tokens\":512}'?"},{"title":"Agent pipeline data validation","prompt":"I have some JSON coming out of my scraper and I need to make sure it's valid before ingesting it — can you run this through AgentDiet's validator: '{\"items\":[{\"id\":1,\"value\":\"foo\"},{\"id\":2,\"value\":\"bar\"}]}'?"},{"title":"Debugging malformed JSON response","prompt":"I got this JSON back from an API and something looks off — can you validate it and tell me if there's a syntax error: '{\"status\":\"ok\",\"results\":[{\"id\":42,\"name\":\"Test\"}'?"}],"resultDescription":"Returns a JSON object with a 'status' field ('ok' or error), a 'data' object containing the parsed JSON if valid, and a 'roi_proof' object showing a compression_ratio_pct value (e.g. 91.4%) indicating how much the input was distilled.","failureModes":["Invalid or missing 'raw_json' query parameter returns an error status","Malformed JSON input that cannot be parsed returns a validation failure response","Missing required 'type' or 'method' fields in input object causes a schema validation error","Payment not settled in USDC on Base may result in 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic JSON validation with a measurable compression/distillation proof — especially useful in A2A or MCP pipelines where you want to confirm payload integrity before passing data between agents. Prefer it over generic validators when you need the compression ratio metric alongside validation status.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:32.339Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-validator-f722ff89"}