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 have originally reported this to marshmallow as marshmallow-code/marshmallow#1962, because I assumed that the warning comes from there, but it seems that it is emitted by `dataclasses_json` instead. Therefore, I'm...

bug
triage

# Evironmental * Python3.8.6 * dataclasses-json 0.4.5 # What's happen? When I exected the following python file, `UserWarning: Unknown type str at Person.name` occurred. ```python from __future__ import annotations from...

Creating this parent issue to track API improvements / upgrades 1. Support forward references (which will enable recursive dataclasses): #5 2. Full typing support: #23 3. ~~`coerce_keys` kwarg for encoding:...

enhancement
help wanted

I have a recursive data structure as follows: ```python @dataclass_json @dataclass class TreeItems: data: TreeItemData Children: List["TreeItems"] ``` This does not work, even with the workaround here: https://github.com/lidatong/dataclasses-json/issues/340#issuecomment-1048277260 (infinite recursion)...

enhancement

I have this problem with `Generic` types: ```python from typing import Generic, TypeVar T = TypeVar("T") @dataclass_json @dataclass class ClassB: name: str @dataclass_json @dataclass class ClassA(Generic[T]): data: T ClassA.from_json(ClassA(data=ClassB(name="name")).to_json()) #...

triage

Hi all. I have added support which i have been missing on issue #358. I hope that we could discuss about my solution and if something is wrong in your...

I am currently struggling with a difficult problem to solve. because what i want to do is to prepare a data class for azure cloud to i.e. [update device attestation](https://docs.microsoft.com/en-us/rest/api/iotcentral/1.2-previewdataplane/devices/update-attestation)....

Fix https://github.com/lidatong/dataclasses-json/issues/191 - reuse `_support_extended_types` to decode items of a collection - iterate over the list of types while decoding tuple's items

### Problem There is inconsistent behavior in how a custom decoder is used depending on whether the field of the custom decoder has `Optional` type. For optional fields which can...

Hi @lidatong , and many thanks for this wonderful library! I'm wondering if there's a implementation of "ignore_custom_names_on_serialization" that I might have missed? The case if as follows: I have...