Packages
Provides a dict-like interface to JSONSchema documents that lazily resolves `$ref` references, supporting both local and remote schemas with optional YAML support.
Parses and repairs malformed JSON strings from LLMs, APIs, logs, and user input by fixing missing quotes, commas, brackets, and other syntax errors, returning valid JSON or Python objects.
Implements JSON-RPC 2.0 and 1.0 protocol specification for parsing requests and dispatching to registered methods, with no transport layer included.
However, aging maintenance (last release 2023-06-11) means you should verify compatibility with your target Python versions and test thoroughly before adopting in new…
Generates static HTML or Markdown documentation pages from JSON Schema files, supporting JSON Schema Draft-07 with multiple templates and reference resolution.
Install it if you need to document JSON schemas in static HTML or Markdown format.
Automatically generates Pydantic v2 models from JSON Schema definitions, handling references, combiners, validations, and format constraints.
Maps each value in a JSON document to its source location (line, column, character position) and JSON Pointer path, enabling precise error reporting and source-aware JSON processing.
Implements JSON Schema, JSON Pointer, and JSON Reference specifications to validate, navigate, and resolve JSON documents programmatically or via CLI.
Not recommended if you require active maintenance or expect frequent updates to JSON specification support.
Streams JSON data from files, URLs, or iterators without loading the entire document into memory, offering both dict/list-like and visitor-based interfaces for parsing and encoding.
Install it if you regularly work with large JSON files, streaming APIs, or NDJSON formats.
A Rust-based JSON tokenizer that accelerates JSON parsing for the json-stream library, available as a drop-in replacement or automatic dependency.
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.
Constructs, manipulates, and serializes time series data in JSON Time Series (JTS) specification format, with support for timestamped records containing values, quality codes, and annotations.
Flattens and unflattens nested JSON structures with SIMD-accelerated parsing and optional parallel processing, supporting both Rust and Python with DataFrame integration.
Extends Python's JSON serialization to handle numpy arrays, class instances, datetimes, OrderedDict, comments, and other non-standard types while preserving human readability.
Install it if you need to serialize non-standard Python types to JSON; skip it if you only work with standard JSON types.
Parses and serializes JSON with support for single-line and block comments, plus trailing commas in arrays and objects.
Install it if you need to parse or generate JSON with comments.
Converts JSON data structures into HTML tables for human-readable display, with support for nested objects, arrays, and custom table attributes.
However, verify compatibility with your Python version first—the lack of updates since 2019 and unspecified Python support mean you may encounter issues on modern…
Converts JSON files to ONNX model format, accepting either a JSON file path or a dictionary and returning an ONNX ModelProto object.
However, dormant maintenance (last update 1077 days ago) means you should test thoroughly before production use and be prepared to fork or find alternatives if issues…
Converts JSON data to XML format via Python library or CLI tool, with optional Rust acceleration for performance-critical workloads.
Parses and writes JSON5 data format, which extends JSON with JavaScript-style comments, unquoted keys, trailing commas, and single-quoted strings.
Parses JSON5 (JSON with comments, trailing commas, unquoted keys) into a concrete syntax tree and converts it back to source or standard JSON while preserving formatting and comments.
However, maintenance is dormant (no updates since May 2023), so if you hit edge cases or need new JSON5 features, you may need to fork or patch it yourself.
Provides an abstract base class for defining Python objects that serialize to and deserialize from JSON with minimal boilerplate.
Provides a recursive type alias for JSON-compatible data structures in Python, enabling type hints for dictionaries, lists, and primitive values.
jsonargparse creates command-line interfaces and configuration systems from Python type hints and docstrings, parsing arguments from the command line, config files (JSON, YAML, TOML, Jsonnet), and environment variables.
Converts JSON data into Python objects with attribute-style access, allowing you to read and manipulate JSON as if it were native Python classes.
Converts JSON data into Python objects with attribute-style access, allowing you to work with JSON as dot-notation properties instead of dictionary keys.
However, do not rely on it for production systems requiring active maintenance or Python version updates beyond 3.9.
Evaluates JSONata expressions against JSON data, supporting the full JSONata language with no external runtime dependencies.
Install it if you need to evaluate JSONata expressions in Python or want a command-line tool for JSON querying.
Parses JSON files with comments (.jsonc) and converts between .jsonc and .json formats, stripping comments in the process.
However, do not expect bug fixes or updates for newer Python versions.
Parses JSON with comments, multiline strings, and trailing commas by preprocessing input before passing it to any standard JSON parser.
Compares two JSON-like objects and returns a detailed dictionary of differences, including type mismatches, value changes, missing keys, and array length variations.
However, do not install if you require active bug fixes, Python 3.10+ support guarantees, or ongoing feature development—the last release was in 2021 and no updates…
Checks whether evolving JSON Schemas remain compatible and generates example values that conform to a schema.
Converts arbitrary Python objects to JSON strings and back, extending the standard json module with support for custom classes, numpy arrays, and nested structures through JSONEncoder and JSONDecoder subclasses.
However, maintenance is aging (last release 275 days ago), so verify that its feature set meets your needs before adopting it for new projects.
Computes structured diffs between JSON and JSON-like Python objects, representing changes as insertions, deletions, and updates rather than raw value replacements.
Install it if you need to understand or track changes in JSON or dict-like data structures; the low friction and stable API make it a safe dependency.
A Django model field that stores and retrieves JSON data with automatic serialization and deserialization, now deprecated in favor of Django's native JSONField.
Formats Python logging output as JSON, enabling structured logs suitable for log aggregation systems like LogStash.
Not recommended for projects requiring active upstream support.
Simplifies reading and writing jsonlines (newline-delimited JSON) and ndjson format files, providing a lightweight interface for streaming JSON records.
Merges multiple JSON documents into a single document using configurable merge strategies applied via JSON schema keywords.
Jsonnet is a data templating language that evaluates Jsonnet code to produce JSON output, with Python bindings to the original C++ implementation.
However, do not use it to evaluate untrusted Jsonnet code without external sandboxing—the C++ implementation is not hardened.
jsonobject provides a Python library for mapping deeply nested JSON structures to well-typed Python objects with automatic serialization and deserialization between the two representations.
However, the aging maintenance status (last release 533 days ago) means you should verify compatibility with your Python version and use case before relying on it for…
Applies JSON Patches according to RFC 6902, allowing you to describe and apply structured changes to JSON documents programmatically.
Implements JSONPath, a query language for extracting data from JSON documents using XPath-like syntax to navigate and filter nested structures.
No—not recommended for new projects.
Parse, query, and modify JSON structures using JSONPath expressions with support for arithmetic operators, comparisons, and AST-level manipulation.
Install it if you need to query or modify JSON structures programmatically beyond simple key access.