API#
Anything documented here is part of the public API that flask-ujson provides, unless otherwise indicated. Anything not documented here is considered internal or private and may change at any time.
- class flask_ujson.UjsonProvider(app)#
A
JSONProvider
that uses the fast ujson library.- Parameters:
app (App) –
- dump_args: dict[str, Any] = {'default': <function _default>, 'encode_html_chars': True, 'ensure_ascii': False}#
Default keyword arguments passed to
ujson.dumps
.
- dumps(obj, **kwargs)#
Serialize data as JSON.