
PHP json_decode() Function: How to Decode JSON in PHP with Examples & Online Tool
You’ve just called an API. The response comes back as a JSON string. Now what? If you’ve ever stared at a wa…
Read moreValidate JSON data against a JSON Schema (Draft-07 subset) and see every violation
Click Validate to check the JSON data against the schema.
Table of Contents
Paste or load your JSON document into JSON Data and your JSON Schema into JSON Schema, then click Validate. If the data doesn't already have a schema, generate one first with our JSON to JSON Schema tool, then edit it to add the constraints you actually want enforced.
type (including type arrays for nullable fields)properties, required, additionalProperties, patternProperties, minProperties, maxPropertiesitems (single schema or tuple), additionalItems, contains, minItems, maxItems, uniqueItemsminLength, maxLength, pattern, basic format checks (email, date, date-time, uri, uuid, ipv4)minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOfenum, constallOf, anyOf, oneOf, notThis validator does not resolve $ref/$defs references, conditional if/then/else schemas, or remote schema fetching. It's built for self-contained schemas covering the keywords listed above — for full Draft 2020-12 spec compliance with references, use a dedicated library like ajv in your own codebase.
Our JSON to JSON Schema tools go one direction: JSON data in, a schema out, describing the shape of that one example. This validator goes the other way: you supply both a schema (however it was written) and a JSON document, and it tells you exactly where the document violates that schema — the check you'd actually run against new incoming data.
No. Both the JSON data and the schema are validated entirely in your browser using JavaScript — neither is sent to a server.

You’ve just called an API. The response comes back as a JSON string. Now what? If you’ve ever stared at a wa…
Read more
JSONL, or JSON Lines,s is a typical JSON format in which each line is a valid JSON value. The JSONL file normally has a …
Read more
Any Large Language Model (LLM) writes text content one token at a time, and then writes the next token. text one token a…
Read more