jsons v1.1.0 Release Notes

Release Date: 2019-12-04 // over 4 years ago
  • ๐Ÿ”„ Changes

    • ๐Ÿ”‹ Feature: Added strict parameter to dump to indicate that dumping a certain cls will ignore any extra data.
    • Feature: When using dump(obj, cls=x), x can now be any class (previously, only a class with __slots__).
    • ๐Ÿ”‹ Feature: Support for dumping Decimal (thanks to herdigiorgi).
    • ๐Ÿ”‹ Feature: Primitives are now cast if possible when dumping (e.g. dump(5, str)).
    • ๐Ÿ”‹ Feature: Dumping iterables with generic types (e.g. dump(obj, List[str])) will now dump with respect to that types (if strict)
    • ๐Ÿ”‹ Feature: The default_dict serializer now optionally accepts types: Optional[Dict[str, type]].
    • ๐ŸŽ Change: Improved performance when dumping using strict=True (up to 4 times faster!).
    • ๐Ÿ›  Bugfix: set_validator with multiple types did not work.