databind.json
De-/serialize Python dataclasses to or from JSON payloads. Compatible with Python 3.8 and newer. Deprecated, use `databind` module instead.
Decision gist · record as of 2026-08-14
Yes, if you need flexible, type-safe JSON deserialization into dataclasses with minimal setup. The package is actively maintained, has no known vulnerabilities, and low install friction. Not recommended if performance is critical—the maintainers explicitly direct high-speed use cases elsewhere. The package is marked deprecated in favor of the `databind` module, so verify that the newer package meets your needs before committing to this one.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or newer; does not support Python 3.6 or 3.7.
- Low friction: pure Python wheel with a single runtime dependency (databind).
- Last release 84 days ago with active repository status.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-05-22 (84 days) · last repo commit 2026-05-22 · 15 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 246,287 downloads/mo, #8,712 on PyPI
Alternatives
Verify before relying
pip install databind.json
from dataclasses import dataclass
from databind.json import load, dump
@dataclass
class Config:
host: str
port: int
data = {"host": "localhost", "port": 8080}
config = load(data, Config)
result = dump(config, Config)- Performance characteristics relative to alternatives when handling large payloads or deeply nested structures.
- Whether the package handles circular references or self-referential dataclass definitions.
- Extent of validation and error reporting when encountering malformed or type-mismatched input data.
What it is and what it does
databind.json is a (de)serialization framework designed for flexible configuration loading from JSON-like nested data structures. It maps between Python dataclasses and dictionaries, automatically handling native types (int, str, bool, etc.), standard library types (Enum, Decimal, UUID, Path, datetime, date, time, timedelta), and generic types like lists and unions. The package supports multiple union serialization modes, runtime type checking, and customization through global settings, class-level decorators, or type-hint annotations.
The package explicitly prioritizes ease of use and flexibility over performance—if you need high-speed serialization, the documentation recommends alternatives like mashumaro. It's intended primarily for configuration loading workflows where you want to load structured data into typed Python objects without boilerplate, and it handles nested dataclasses, field flattening, and extra-key collection out of the box.
Use it for
- Load configuration files (JSON, YAML-converted-to-dict) into typed dataclass objects with automatic type validation.
- Deserialize API responses into dataclass instances while preserving type safety and handling nested structures.
- Serialize dataclass instances back to JSON-compatible dictionaries for storage or transmission.
- Handle union types and multiple serialization modes (nested, flat, keyed, Literal) in complex data schemas.
- Customize field names and serialization behavior per-field using Annotated type hints without modifying dataclass definitions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need flexible, type-safe JSON deserialization into dataclasses with minimal setup.
The package is actively maintained, has no known vulnerabilities, and low install friction. Not recommended if performance is critical—the maintainers explicitly direct high-speed use cases elsewhere. The package is marked deprecated in favor of the `databind` module, so verify that the newer package meets your needs before committing to this one.
Install
databind-json on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency (databind). Last release 84 days ago with active repository status.
Requires Python 3.8 or newer; does not support Python 3.6 or 3.7.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install databind.json
from dataclasses import dataclass
from databind.json import load, dump
@dataclass
class Config:
host: str
port: int
data = {"host": "localhost", "port": 8080}
config = load(data, Config)
result = dump(config, Config)
Verify before relying
- Performance characteristics relative to alternatives when handling large payloads or deeply nested structures.
- Whether the package handles circular references or self-referential dataclass definitions.
- Extent of validation and error reporting when encountering malformed or type-mismatched input data.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedatabind |
| Maintenance | Actively maintained 84 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 246,287 / month, #8,712 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: databind_json-4.5.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type-safe json loading”
- databind.jsonDeserializes and serializes Python dataclasses to and from JSON-like…
- databindDatabind deserializes JSON-like nested data structures into Python…
- dataclass-wizardDataclass Wizard converts Python dataclasses to and from JSON, YAML,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also databind · databind.core · dataclass-factory · dataclass-wizard · json-strong-typing · jsons · pyserde · serpyco-rs · typedload · jax-dataclasses