{"uid":"cap_K0bZXBmveR_a5cZgTQu3Y","slug":"agentstoolshub-json-schema-validator-e3ee03af","name":"AgentsToolsHub JSON Schema Validator","description":"Validate a JSON document against a JSON Schema (draft 2020-12) with precise error paths — the exact check agents need before trusting structured output. Returns valid/invalid plus every violation with its JSON Pointer location and message. Use this when an agent needs to validate JSON against a draft 2020-12 schema.","url":"https://agentstoolshub.com/api/v1/dev/json-schema-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"],"type":"string"},"queryParams":{"type":"object","required":["schema","data"],"properties":{"data":{"type":"string","description":"JSON data"},"schema":{"type":"string","description":"JSON Schema"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0TauDOLalMu95w37f3TSW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON document against a JSON Schema (draft 2020-12) and returns a valid/invalid result with detailed violation paths and messages","exampleAgentPrompt":"Can you validate this JSON data against my schema and tell me exactly which fields are invalid and where — I need the full list of violations with their JSON Pointer locations: data is {\"name\":\"Alice\",\"age\":\"thirty\"} and schema is {\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"age\":{\"type\":\"integer\"}},\"required\":[\"name\",\"age\"]}.","exampleUseCases":[{"title":"Validate agent-generated structured output","prompt":"Before I process this JSON the AI agent just produced, validate it against my draft 2020-12 schema and list every violation with its exact JSON Pointer path so I know what to fix — the data is {\"userId\":123,\"email\":null} and the schema requires email to be a non-null string."},{"title":"Check API response before ingestion","prompt":"I got a JSON response from an external API and I need to make sure it matches my expected schema before I store it — can you run it through JSON Schema draft 2020-12 validation and tell me if it's valid or show me all the errors?"},{"title":"Debug malformed configuration file","prompt":"My app is crashing on startup and I think the config JSON is malformed against our schema — validate this config JSON against the schema I'll paste in and show me every violation with the exact location in the document so I can fix it."}],"resultDescription":"Returns a valid/invalid boolean result along with a structured list of every schema violation, each including the JSON Pointer location (e.g. /age) and a human-readable error message describing the constraint that was violated.","failureModes":["Invalid or malformed JSON in the data parameter — returns parse error","Invalid or malformed JSON Schema string — returns schema parse error","Unsupported JSON Schema draft (only draft 2020-12 is supported)","Missing required query parameters (schema or data) — returns 400 error","Payment not processed — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need precise, draft 2020-12 compliant JSON Schema validation with full error reporting including JSON Pointer paths for every violation. Ideal for agents that need to verify structured output before trusting or storing it, or developers debugging JSON conformance issues. Prefer this over generic linting tools when exact violation locations and schema-standard compliance matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:51.463Z","isFirstParty":false,"canonicalSlug":"agentstoolshub-json-schema-validator-e3ee03af"}