{"uid":"cap_ctv4y9IueQ5FNLrv4z679","slug":"json-schema-validator-a8753f7e","name":"JSON Schema Validator","description":"Pure computation endpoints paid per call via x402 ($0.001 USDC on Base).","url":"https://compute-api-production-245d.up.railway.app/validate-json?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["data","schema"],"properties":{"data":{"type":"string","description":"JSON value to validate"},"schema":{"type":"object","description":"JSON Schema"}}},"responseSchema":{"type":"object","properties":{"valid":{"type":"boolean"},"errors":{"type":"array","items":{"type":"object"}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EwlEkwDQc42f79gC5TQXr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON value against a provided JSON Schema and returns whether it is valid along with any validation errors.","exampleAgentPrompt":"Can you validate this JSON string '{\"name\":\"Alice\",\"age\":30}' against a schema that requires name to be a string and age to be an integer greater than 0, and tell me if it passes and list any errors?","exampleUseCases":[{"title":"API response contract check","prompt":"I just got a response from an external API and I need to verify it matches our expected schema — the response is '{\"id\":123,\"status\":\"active\",\"email\":\"user@example.com\"}' and the schema requires id to be an integer, status to be one of active or inactive, and email to be a string. Can you validate it for me?"},{"title":"User form submission validation","prompt":"A user submitted this JSON form data: '{\"username\":\"john_doe\",\"age\":\"twenty\",\"email\":\"not-an-email\"}' — can you check it against our schema that requires username to be a string, age to be a number, and email to follow email format, and list all the errors?"},{"title":"Config file conformance check","prompt":"Before I deploy, can you validate my config JSON '{\"maxRetries\":5,\"timeout\":\"30s\",\"logLevel\":\"debug\"}' against a schema where maxRetries must be an integer, timeout must be a number in seconds, and logLevel must be one of debug, info, or warn?"}],"resultDescription":"Returns a JSON object with a 'valid' boolean indicating whether the input data conforms to the schema, and an 'errors' array containing objects describing each validation failure (e.g. which property failed and why) when the data is invalid.","failureModes":["Malformed JSON string in 'data' field causes parsing error","Invalid or unrecognized JSON Schema format returns error","Missing required 'data' or 'schema' fields returns 400-style error","Payment not fulfilled causes 402 Payment Required response","Schema references unsupported keywords may cause unexpected results"],"whenToPreferThis":"Choose this endpoint when you need a programmatic, pay-per-call JSON Schema validation service without setting up your own validation library or infrastructure. It is ideal for agents that occasionally need to validate JSON at runtime, check API response conformance, or validate user-submitted data against a known schema without a persistent backend.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:37:29.881Z","isFirstParty":false,"canonicalSlug":"json-schema-validator-a8753f7e"}