A Python library for type-safe JSON serialization and deserialization using Python dataclasses. It enforces strict type checking, supports nested dataclasses, generic types, and optional fields. Current version 0.4.3, requires Python >=3.9, released under MIT license. Maintenance is active with periodic updates.
pip install json-strong-typingVerified import paths — ran on the pinned version, not inferred.
Define a dataclass extending JsonDataclass, then serialize/deserialize using json_serialize and json_deserialize.
Use 'import strong_typing' or 'from strong_typing import ...'.
Ensure every field has a type annotation (e.g., name: str, age: int).
Use field: Optional[int] = None or field: int | None = None.
Upgrade to 0.4.x and use 'from strong_typing import JsonDataclass'.
No dependency data recorded yet.