{"uid":"cap_AiYLUoXi5qR3RoiZ0u7nF","slug":"apex-edge-json-validate-0ac0fb3a","name":"apex-edge JSON Validate","description":"x402-paid inference + audit endpoints","url":"https://apex-edge.pearceshrader.workers.dev/api/v1/util/json-validate?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","properties":{"queryParams":{"type":"object","properties":{"input":{"type":"string"}}}}},"output":{"type":"object","properties":{"example":{"status":"ok"}}}}},"responseSchema":{"type":"json"},"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_NPS_-pG7KfLYWVHObgoWU","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 whether a submitted payload is well-formed JSON, returning a structured validation result","exampleAgentPrompt":"Can you check whether this string is valid JSON for me: '{\"name\":\"Alice\",\"age\":30,\"active\":true}'?","exampleUseCases":[{"title":"Pre-flight API payload check","prompt":"Before I send this config object to the database API, can you validate that it's actually valid JSON? Here it is: '{\"host\":\"db.example.com\",\"port\":5432,\"ssl\":true}'"},{"title":"Debugging malformed webhook data","prompt":"I'm getting errors processing incoming webhooks — can you check if this payload is valid JSON and tell me where the syntax problem is: '{\"event\":\"purchase\",\"amount\":99.99,\"user_id\":42,}'"},{"title":"User-submitted form data validation","prompt":"A user submitted this as JSON configuration in our app — can you validate it's well-formed before we store it? The string is: '{\"theme\":\"dark\",\"notifications\":true,\"language\":\"en\"}'"}],"resultDescription":"Returns a JSON object indicating whether the submitted payload is valid JSON, along with error details such as position and description of any syntax issues if validation fails","failureModes":["Empty body submitted — returns validation error or 400","Non-JSON content type mismatch causing parse failure before validation","Oversized payload exceeding worker request limits — returns 413 or timeout","Payment not included or insufficient — returns 402 Payment Required","Malformed request envelope (not the JSON being tested) — may return 400"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call JSON syntax validation check without standing up your own parser or validator, especially within an x402-payment-enabled agentic workflow where micro-cost API calls are acceptable","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:34:42.143Z","isFirstParty":false,"canonicalSlug":"apex-edge-json-validate-0ac0fb3a"}