Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dataclass in JSONEncoder (if available) #3195

Merged
merged 1 commit into from
May 19, 2019
Merged

Support dataclass in JSONEncoder (if available) #3195

merged 1 commit into from
May 19, 2019

Conversation

eruvanos
Copy link
Contributor

Support dataclass to be encoded with jsonify using dataclasses.as_dict().

flask/json/__init__.py Outdated Show resolved Hide resolved
tests/test_basic.py Outdated Show resolved Hide resolved
tests/test_basic.py Outdated Show resolved Hide resolved
@davidism davidism added this to the 1.1 milestone May 13, 2019
@davidism davidism added the json label May 13, 2019
@eruvanos
Copy link
Contributor Author

@ThiefMaster Is something still missing or is it fine, like it is?

@davidism davidism merged commit b0185a6 into pallets:master May 19, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants