Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 15 Jan 00:03
· 37 commits to main since this release
2.0.0
7ad0076

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.