mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-12 09:17:56 +03:00
removed orjson, uds uses numbers as key on dict and orjson does not supports it
This commit is contained in:
parent
b3a8ae8abe
commit
44f219402e
@ -31,7 +31,6 @@
|
||||
@author: Adolfo Gómez, dkmaster at dkmon dot com
|
||||
"""
|
||||
import datetime
|
||||
# Try to use orjson if available
|
||||
import json as json # type: ignore
|
||||
|
||||
import logging
|
||||
@ -140,9 +139,8 @@ class MarshallerProcessor(ContentProcessor):
|
||||
logger.exception('parsing %s: %s', self.mime_type, e)
|
||||
raise ParametersException(str(e))
|
||||
|
||||
def render(self, obj):
|
||||
def render(self, obj: typing.Any):
|
||||
return self.marshaller.dumps(ContentProcessor.procesForRender(obj))
|
||||
# return json.dumps(obj)
|
||||
|
||||
|
||||
# ---------------
|
||||
|
Loading…
Reference in New Issue
Block a user