{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/5"}],"enrichment":{"capability":"Converts Python objects (dataclasses, attrs classes, and plain objects) to JSON-serializable dicts and strings, and deserializes them back to typed instances.","skillfed_tags":["serialization","dataclass-json","type-aware"],"use_cases":["Serialize dataclass instances to JSON for API responses or file storage without manual field mapping.","Deserialize JSON payloads into typed dataclass or attrs objects with automatic type conversion (e.g., string to datetime).","Convert Python objects to dicts for database storage or caching while preserving type information.","Handle nested structures with generic types (e.g., List[MyClass] or Dict[str, OtherClass]) in a single call.","Build REST API handlers that accept JSON and automatically convert it to domain objects."],"what_it_does":"jsons is a serialization library that converts Python objects into JSON-compatible dicts and strings, then deserializes them back into typed instances. It works with dataclasses, attrs classes, and plain Python objects without requiring changes to your class definitions. The library handles common types (datetime, date, time, timezone, timedelta, Decimal, Path) and supports generic types like List and Dict with type hints.\n\nYou use it by calling jsons.dump() to serialize an instance to a dict, and jsons.load() to deserialize a dict back into a typed object. It's designed to be customizable and extendable, with support for complex nested structures and optional type-aware validation. The single runtime dependency is typish, and installation is straightforward.","worth_installing":"Yes, if you need straightforward object-to-JSON serialization for dataclasses or attrs without boilerplate. The library is stable and has no known vulnerabilities, but be aware it is dormant (last release 2022-06-09, last commit 2023-12-29). It works well for current Python versions and common use cases, but may not receive updates for future language features. Install it if your project's Python version and dependencies are stable; avoid it if you need active maintenance or cutting-edge typing support."},"id":"jsons","links":{"html":"https://skillfed.io/packages/jsons","md":"https://skillfed.io/packages/jsons.md","pypi":"https://pypi.org/project/jsons/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-06-09","license_spdx":null,"license_treatment":"permissive","name":"jsons","python_support":"supports_current","summary":"For serializing Python objects to JSON (dicts) and back"},"popularity":{"monthly_downloads":1471741,"position":3867,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.6.3"}
