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

Conversation

@eruvanos
Copy link
Contributor

commented May 13, 2019

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

This comment has been minimized.

Copy link
Contributor Author

commented May 16, 2019

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

@davidism davidism merged commit b0185a6 into pallets:master May 19, 2019

12 checks passed

Flask Build #20190519.9 succeeded
Details
Flask (Flask DocsHtml) Flask DocsHtml succeeded
Details
Flask (Flask Pypy3Linux) Flask Pypy3Linux succeeded
Details
Flask (Flask Python27Linux) Flask Python27Linux succeeded
Details
Flask (Flask Python27Windows) Flask Python27Windows succeeded
Details
Flask (Flask Python35Linux) Flask Python35Linux succeeded
Details
Flask (Flask Python36Linux) Flask Python36Linux succeeded
Details
Flask (Flask Python37Linux) Flask Python37Linux succeeded
Details
Flask (Flask Python37Mac) Flask Python37Mac succeeded
Details
Flask (Flask Python37Windows) Flask Python37Windows succeeded
Details
Flask (Flask VersionRange) Flask VersionRange succeeded
Details
Flask (FlaskOnNightly) FlaskOnNightly succeeded
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.