dataclasses-json
dataclasses-json copied to clipboard
Easily serialize Data Classes to and from JSON
### Description Whenever I use `.from_dict()` (or `.from_json()`) it errors out with a `NameError`, saying that the types haven't been defined, even though it is defined within the `TYPE_CHECKING` block....
### Description We just ran into the case where the warnings logged out huge chunks of actual data into stdout. While I understand where this comes from, this is a...
### Description Documentation says that the latest release is available for Python3.6 but, it is not. Python3.6 support was removed here, on March 18, 2023: https://github.com/lidatong/dataclasses-json/commit/77526873ade0424561c60416a3bcb29dde92b302. I am building on...
This commit removes a duplicate copy of `test_deserialize_with_mismatched_field_types`.
This commit extends support of dataclasses_json to dataclasses with fields annotated with Literal types. Literal types allow users to specify a list of valid values, e.g., ```python @dataclass class DataClassWithLiteral(DataClassJsonMixin):...
### Description ```py Traceback (most recent call last): File "/tmp/test.py", line 38, in main print(t.to_json()) ^^^^^^^^^^^ File "/lib64/python3.11/site-packages/dataclasses_json/api.py", line 37, in to_json return json.dumps(self.to_dict(encode_json=False), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib64/python3.11/site-packages/dataclasses_json/api.py", line 73, in...