Skip to content

Releases: pallets-eco/flask-orjson

2.0.0

15 Jan 00:03
2.0.0
7ad0076
Compare
Choose a tag to compare

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.