{"uid":"cap_yo-yP1XS3ilGz0HmW-Viu","slug":"agentdiet-json-validator-fd44a142","name":"AgentDiet JSON Validator","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.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_06FRDjXwNYB2IvbYgEmn-","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 via a GET request and returns validation status with a 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 sanity check","prompt":"Before I send this payload to the payments API, validate this JSON for me and make sure it's parseable: '{\"amount\":100,\"currency\":\"USD\",\"recipient\":\"bob@example.com\"}'"},{"title":"Agent output quality gate","prompt":"My AI agent just generated this JSON response — can you run it through a validator and confirm it's valid before I pass it to the next step: '{\"tasks\":[{\"id\":1,\"done\":false}]}'?"},{"title":"Debugging malformed API response","prompt":"I got back this JSON from a third-party API and something seems off — can you validate it and tell me if there are any syntax errors: '{\"status\":\"ok\",\"data\":{\"value\":null,}}'?"}],"resultDescription":"Returns a JSON object with a 'status' field ('ok' or error), a 'data' object containing the parsed JSON, and an 'roi_proof' object that includes a compression_ratio_pct field indicating how much the input was compressed or validated (e.g. 91.4%).","failureModes":["Malformed or non-JSON input returns an error status","Missing required 'input' field causes a 400-level error","Oversized JSON payloads may time out or be rejected","Payment not settled in USDC on Base causes x402 payment required error","Invalid query parameter type for raw_json causes schema validation failure"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call JSON validation step inside an agent pipeline, especially when you're already using x402/USDC micropayment infrastructure on Base. It's well-suited for validating agent-generated JSON before downstream consumption, or for quick syntax checks without spinning up a local parser.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:32.346Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-validator-fd44a142"}