dataclasses-json icon indicating copy to clipboard operation
dataclasses-json copied to clipboard

Easily serialize Data Classes to and from JSON

Results 166 dataclasses-json issues
Sort by recently updated
recently updated
newest added

### 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....

bug

### 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...

bug

### 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...

bug

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...

bug