mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-25 23:21:41 +03:00
Added orjson as json "first option" for REST API (python json else)
This commit is contained in:
parent
a0365e1277
commit
91923654f0
@ -31,7 +31,11 @@
|
|||||||
@author: Adolfo Gómez, dkmaster at dkmon dot com
|
@author: Adolfo Gómez, dkmaster at dkmon dot com
|
||||||
"""
|
"""
|
||||||
import datetime
|
import datetime
|
||||||
import json
|
try:
|
||||||
|
import orjson as json
|
||||||
|
except ImportError:
|
||||||
|
import json as json # type: ignore
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
import types
|
import types
|
||||||
|
Loading…
Reference in New Issue
Block a user