We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be14a44 commit 7c80f5aCopy full SHA for 7c80f5a
src/labthings/representations.py
@@ -4,9 +4,15 @@
4
from flask import current_app, make_response, Response
5
6
from .find import current_labthing
7
-from .json.encoder import encode_json, JSONEncoder as FlaskJSONEncoder
+from .json.encoder import (
8
+ LabThingsJSONEncoder,
9
+ encode_json,
10
+ JSONEncoder as FlaskJSONEncoder,
11
+)
12
from .utilities import PY3
13
14
+__all__ = ["LabThingsJSONEncoder", "DEFAULT_REPRESENTATIONS", "output_json"]
15
+
16
17
def output_json(data: Any, code: int, headers: Optional[dict] = None) -> Response:
18
"""Makes a Flask response with a JSON encoded body, using app JSON settings
0 commit comments