loads
Deserialize data as JSON. If :data:~flask.current_app is available, it will use its :meth:app.json.loads() < flask.json.provider.JSONProvider.loads > method, otherwise it will use :func:json.loads.
def loads(
s: str | bytes,
kwargs: t.Any
) - > t.Any
Deserialize data as JSON. If :data:~flask.current_app is available, it will use its :meth:app.json.loads() < flask.json.provider.JSONProvider.loads > method, otherwise it will use :func:json.loads.
Parameters
| Name | Type | Description |
|---|---|---|
| s | `str | bytes` |
| kwargs | t.Any | Additional keyword arguments passed to the underlying loads implementation (either current_app.json.loads or json.loads). |
Returns
| Type | Description |
|---|---|
t.Any | The deserialized JSON data. |