{"uid":"cap_q0K2JEQQAon2WB7ICreRr","slug":"centralcity-ai-json-schema-validator-fbc0a265","name":"centralcity.ai JSON Schema Validator","description":"Checks a JSON document against a JSON Schema (type, properties, required, items, enum, const, minimum, maximum, minLength, maxLength, pattern, additionalProperties).","url":"https://centralcity.ai/api/public/x402/off_ygyfaoxvpd24ubvn?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"json":{"type":"string","description":"The JSON document, at most 64 KiB."},"schema":{"type":"string","description":"The JSON Schema as JSON text, at most 16 KiB."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6R-iMf9GdCY9lemVJ3HVR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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 provided JSON Schema, checking types, properties, constraints, and structure.","exampleAgentPrompt":"Can you check whether this JSON document conforms to my schema? The JSON is '{\"name\":\"Alice\",\"age\":30}' and the schema requires name to be a string and age to be an integer with a minimum of 0.","exampleUseCases":[{"title":"API response schema conformance check","prompt":"I just got this JSON back from a third-party API — can you validate it against my expected schema? The document is '{\"id\":\"abc123\",\"status\":\"active\",\"count\":5}' and the schema requires id to be a string, status to be one of active or inactive, and count to be an integer between 0 and 100."},{"title":"Form submission data validation","prompt":"Before I save this user form submission to the database, can you check it against my schema? The JSON is '{\"email\":\"user@example.com\",\"age\":17,\"username\":\"jo\"}' and the schema requires email as a string, age as an integer with minimum 18, and username with a minimum length of 3."},{"title":"Config file structure enforcement","prompt":"Can you validate my config file JSON against the schema I have? The config is '{\"timeout\":30,\"retries\":\"three\",\"debug\":true}' and the schema says timeout and retries must both be integers and debug must be a boolean."}],"resultDescription":"Returns whether the JSON document is valid against the given schema, and if not, details about which fields or values failed validation, including the location of the error and the nature of the constraint violation.","failureModes":["JSON document exceeds 64 KiB limit — rejected","JSON Schema exceeds 16 KiB limit — rejected","Malformed JSON in the document or schema fields — parse error returned","Unsupported JSON Schema keywords beyond the listed set — may be ignored or cause unexpected results","Missing required 'json' or 'schema' fields in the request body"],"whenToPreferThis":"Choose this endpoint when you need deterministic, schema-driven validation of a JSON document against a formal JSON Schema definition — especially when you need to check types, required fields, enums, numeric bounds, string patterns, or structural constraints. Prefer this over ad-hoc LLM-based validation when precision and reproducibility matter, such as validating API payloads, config files, or user submissions before processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:07.331Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-json-schema-validator-b25bd3a7"}