-
Notifications
You must be signed in to change notification settings - Fork 253
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
Flask2.3.X JSONEncoder deprecated #522
Comments
in the meantime, pinning |
Yeap, can confirm the same problem. |
I think that this could be helpful EDIT: |
json_encoder and json_decoder attributes on app and blueprint, and the corresponding json.JSONEncoder and JSONDecoder classes, are removed from Flask version 2.3.0. So, it shows JSONEncoder = json.JSONEncoder For more refer: https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-0 |
flask-mongoengine and flask-restful have issues with flask and werkzeug latest release. See flask-restful/flask-restful#936 and MongoEngine/flask-mongoengine#522
downgrading to |
Is this a bug that will be fixed or are we to use @idoshr fork going forward. I think downgrading isn't the solution. |
In Flask2.3.X, flask.json module deprecated JSONEncoder class, override_json_encoder is not working now.
It will raise
ImportError: cannot import name 'JSONEncoder' from 'flask.json'
The text was updated successfully, but these errors were encountered: