json format after 2.3.x #5095
-
how can i do this operation after 2.3.x app.config["JSON_SORT_KEYS"] = False
app.config["JSONIFY_PRETTYPRINT_REGULAR"] = True
app.config["JSON_AS_ASCII"] = False |
Beta Was this translation helpful? Give feedback.
Answered by
davidism
Apr 27, 2023
Replies: 1 comment 1 reply
-
Described in the API docs, they have moved to attributes on the default provider class: https://flask.palletsprojects.com/en/2.3.x/api/?highlight=sort_keys#flask.json.provider.DefaultJSONProvider. Also, using these raised deprecation warnings in 2.2.x, be sure to run your tests with deprecation warnings treated as errors so that you get notified of those types of changes early. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
keyiflerolsun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Described in the API docs, they have moved to attributes on the default provider class: https://flask.palletsprojects.com/en/2.3.x/api/?highlight=sort_keys#flask.json.provider.DefaultJSONProvider. Also, using these raised deprecation warnings in 2.2.x, be sure to run your tests with deprecation warnings treated as errors so that you get notified of those types of changes early.