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

AttributeError: module 'flask.json' has no attribute 'JSONEncoder' #2755

Closed
gwalingarj opened this issue May 22, 2023 · 3 comments
Closed

AttributeError: module 'flask.json' has no attribute 'JSONEncoder' #2755

gwalingarj opened this issue May 22, 2023 · 3 comments

Comments

@gwalingarj
Copy link

Flask 2.2.3
MongoEngine 0.27.0

JSONEncoder = json.JSONEncoder
AttributeError: module 'flask.json' has no attribute 'JSONEncoder'

@CS-PK
Copy link

CS-PK commented May 29, 2023

I am facing same issue :(

@iammustafatz
Copy link

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
AttributeError: module 'flask.json' has no attribute 'JSONEncoder'

For more refer: https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-0

@idoshr
Copy link
Contributor

idoshr commented Jun 3, 2023

This repo is not the address for flask integration issues

Follow this issue in flask-mongoengine:
MongoEngine/flask-mongoengine#522

@bagerard bagerard closed this as completed Jul 3, 2023
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

No branches or pull requests

5 participants