lidatong / dataclasses-json

Easily serialize Data Classes to and from JSON
MIT License
1.34k stars 151 forks source link

[FEATURE] V1 - JsonSerializer should support `list`, `dict` and types from `typing` library that are supported in v0 #455

Open george-zubrienko opened 11 months ago

george-zubrienko commented 11 months ago

Description

After https://github.com/lidatong/dataclasses-json/issues/453 we should have support for basic json without collections/nested json and readable runtime failures for NYI stuff that is working in v0. Solving this issue should introduce support for collection types (list, dict, tuple etc.), also taking into account new way to do collection type hints (list[str] instead oftypingList[str]`).

Related unit test cases from v0 should be green in the PR introducing this change, when used with v1 API.

Possible solution

No response

Alternatives

N/A

Context

No response