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

I'm getting deprecation warnings when using dataclasses-json with marshmallow 3.10.0. See the following backtrace. Looks like the problem is triggered by the `fields.Nested()` invocation. ``` /usr/local/lib/python3.8/site-packages/dataclasses_json/api.py:100: in schema Schema =...

With dataclasses-json @ `0.5.3` and joblib @ `1.0.1`, I receive empty dictionaries when calling `to_dict()` from inside a delayed parallel job on a dataclass_json (same behavior when using Mixin). Consider...

If a dataclass_json class overrides `to_dict()` but is nested in another dataclass_json class, calling `to_dict()` on the containing class does not result in a call to the overridden method in...

Hello, In my dataclasses i am using Column field of pyspark.sql as well. Is it possible to extend dataclasses-json to define json encoding and decoding for Column field types as...

Hello there, I just discovered that we could register our own default encoders/decoders/marshallow fields per types to affect all json dataclasses. However, it looks likes the `mm_fields` defined in `global_config`...

When using camelCase letter casing, `MyDataClass.from_dict()` still supports the original snake_case letter casing. However, `MyDataClass.schema().load()` doesn't. This isn't a big deal - just use `from_dict()`. However, `from_dict()` doesn't support `many=True`....

bug

Hello, first things first: thanks for this project! I had a similar idea many years ago, but without type annotations it failed miserably. I have a question: why are we...

enhancement
triage

Hi there. I stumbled across this annoying issue. The example below illustrates how overriding the encoder/decoder for `datetime` fields seems to break when the field is optional and missing: ```python...

``` from dataclasses import dataclass, field from dataclasses_json import dataclass_json, config from datetime import datetime from marshmallow import fields @dataclass_json @dataclass class DataClassWithIsoDatetime: created_at: datetime = field( metadata=config( encoder=datetime.isoformat, decoder=datetime.fromisoformat,...