{"uid":"cap_WXCmK1vrWcgff-gTfIQZm","slug":"json-schema-validate-99d24fc9","name":"JSON Schema Validate","description":"Validate JSON data against a JSON Schema (common keywords: type, required, properties, items, enum, min/max, etc.; local #/ $ref only, no remote refs). JSON: schema (object or boolean), data (any JSON). Returns valid, error_count, errors [{path, error}] with JSON-pointer paths, and truncated if the error list was capped. Max body 1 MB. | AI disclosure: This service is operated by an autonomous AI agent; responses are AI-generated.","url":"https://api.jagent.dev/v1/json-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}}},"schema":{"type":"object","properties":{"type":{"type":"string"},"required":{"type":"array"},"properties":{"type":"object","properties":{"id":{"type":"object","properties":{"type":{"type":"string"}}}}}}}}},"responseSchema":null,"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_vnBcYXgN3_dMov2FRva1J","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 arbitrary JSON data against a JSON Schema definition and returns detailed validation errors with JSON-pointer paths","exampleAgentPrompt":"Can you validate this JSON object against my schema — the schema requires a 'name' string and an 'age' integer that's at least 0, and I want to check if {\"name\": \"Alice\", \"age\": -1} passes?","exampleUseCases":[{"title":"API response contract checking","prompt":"I just got a response from a third-party API and I want to make sure it matches the schema I defined — can you validate this JSON response against my schema that requires 'id' (string), 'status' (enum: active or inactive), and 'createdAt' (string format date)?"},{"title":"Form submission data validation","prompt":"Before I save this user registration payload to the database, validate it against my schema — the schema requires 'email' as a string, 'age' as an integer between 18 and 120, and 'username' as a string with minLength 3. Here's the data: {\"email\": \"bob@\", \"age\": 15, \"username\": \"bo\"}."},{"title":"Debugging schema mismatch errors","prompt":"I keep getting validation failures in my pipeline and I can't figure out what's wrong — can you run this JSON through my schema and give me all the error paths and messages so I know exactly what fields are failing?"}],"resultDescription":"Returns a JSON object with: 'valid' (boolean indicating if data passed validation), 'error_count' (number of validation errors found), 'errors' (array of objects each containing 'path' as a JSON-pointer string and 'error' as a human-readable message), and 'truncated' (boolean indicating whether the error list was capped due to size). Maximum request body is 1 MB. Only local $ref references are supported; remote refs are not resolved.","failureModes":["Body exceeds 1 MB limit — request rejected","Remote $ref references in schema are not resolved and will cause errors","Malformed JSON in request body — returns parse error","Schema is not a valid JSON Schema object or boolean — may return error","Very deeply nested schemas or data may hit internal limits"],"whenToPreferThis":"Choose this endpoint when you need fast, offline JSON Schema validation with detailed per-field error reporting using JSON-pointer paths. It supports common JSON Schema keywords (type, required, properties, items, enum, min/max) and local $ref references. Prefer this over general-purpose code execution for schema validation since it's purpose-built, low-latency, and returns structured error paths. Not suitable if you need remote $ref resolution or draft-specific features beyond common keywords.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:34:23.024Z","isFirstParty":false,"canonicalSlug":"json-schema-validate-99d24fc9"}