Releases: pallets-eco/flask-orjson
Releases · pallets-eco/flask-orjson
2.0.0
This is a rewrite of the extension. How to use it has changed significantly from version 1. Typically, the following is all that is needed to use the extension:
from flask_orjson import OrjsonProvider
app.json = OrjsonProvider(app)
Changes: https://flask-orjson.readthedocs.io/en/latest/changes/#version-2-0-0
- The extension is used by assigning a provider instance rather than through an extension object.
- Orjson's
option
flags are configurable. - Type annotations are exported.
- Documentation is available.