Skip to content

Automatic serialize list return value to JSON#322

Merged
greyli merged 1 commit intomainfrom
list-return-value
Jul 3, 2022
Merged

Automatic serialize list return value to JSON#322
greyli merged 1 commit intomainfrom
list-return-value

Conversation

@greyli
Copy link
Copy Markdown
Member

@greyli greyli commented Jul 2, 2022

fixes #321

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code docstring.
  • Add an entry in CHANGES.md summarizing the change and linking to the issue and your username.
  • Add *Version changed* or *Version added* note in any relevant docs and docstring.
  • Run pytest and tox, no tests failed.

@greyli greyli force-pushed the list-return-value branch from 2a05075 to 93ce0b1 Compare July 3, 2022 05:36
@greyli greyli force-pushed the list-return-value branch from 93ce0b1 to 288287d Compare July 3, 2022 05:38
@greyli
Copy link
Copy Markdown
Member Author

greyli commented Jul 3, 2022

This has been implemented in Flask pallets/flask#4672. I will merge this here just for Flask1 support. When we dropped the Flask1 support, the related code can be removed.

@greyli greyli merged commit c19834a into main Jul 3, 2022
@greyli greyli deleted the list-return-value branch July 3, 2022 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow returning list as JSON response

1 participant