Packages
jsonschema validates Python data structures against JSON Schema specifications, raising exceptions when validation fails or iterating through all errors found.
Install it if you need to validate JSON or JSON-like data structures.
Resolves JSON references according to JSON Schema and related specifications, providing a standard way to handle $ref pointers in JSON documents.
Provides JSON Schema metaschemas, vocabularies, and specification files packaged as a Python-accessible Registry for runtime schema validation and reference resolution.
Install it if you are building validation tooling or using a validator that depends on it; it adds negligible friction.
A fast JSON parser that converts bytes into Python objects, offering tuning options for string caching, partial parsing, duplicate key detection, and float representation.
Install only if performance or parsing control (partial mode, duplicate detection, float precision) matters for your use case.
Generates country- and subdivision-specific government holiday calendars on demand, supporting 250 country codes with optional language localization and holiday categories.
GenSON generates JSON Schema documents from JSON objects and can merge multiple schemas together, inferring a unified schema that describes the common structure of your data.
jsonschema-rs validates JSON data against JSON Schema documents using a Rust-backed implementation for high performance, supporting drafts 4 through 2020-12 with customizable format validators and keywords.
Install it if you validate JSON frequently or need to support multiple schema drafts.
Implements RFC 8785 (JSON Canonicalization Scheme) to produce deterministic, byte-for-byte identical JSON serialization regardless of input order or representation.
Install it if you need deterministic JSON serialization for cryptography, signatures, or any use case where byte-for-byte reproducibility matters.
Numpydantic adds type annotations and validation for arrays with shape and dtype constraints in pydantic models, supporting numpy, dask, zarr, hdf5, and video files through a pluggable interface.
zcbor validates and converts YAML/JSON/CBOR data against CDDL schemas, and generates C code for encoding/decoding CBOR data with schema validation.
Install it if you need schema-driven CBOR handling in Python or C; skip it if you work exclusively with JSON or don't require CDDL's advanced schema features.
Serializes Python dataclasses to JSON and deserializes JSON back to typed objects, with support for complex types like UUIDs, decimals, and nested structures, plus JSON schema generation for validation and OpenAPI specs.
Install it if you need type-safe JSON serialization without framework lock-in.