Skip to content

Commit 8f212fc

Browse files
author
Joel Collins
committed
Base LabThingsJSONEncoder on flask JSONEncoder
1 parent c94c57d commit 8f212fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

labthings/server/representations.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
from flask import make_response, current_app
2-
from json import dumps, JSONEncoder
2+
3+
# Flask JSON encoder so we get UUID, datetime etc support
4+
from flask.json import JSONEncoder
5+
from json import dumps
6+
37

48
from ..core.utilities import PY3
59

0 commit comments

Comments
 (0)