Skip to content

Commit

Permalink
replace orjson with ujson
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Jul 22, 2023
1 parent 07dca6d commit 814bc93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies = [
'watchdog == 2.2.1',
'multiprocess == 0.70.14',
'nestd == 0.3.1',
'orjson == 3.9.2',
'ujson == 5.8.0',
# conditional
'uvloop == 0.17.0; sys_platform == "darwin"',
'uvloop == 0.17.0; platform_machine == "aarch_64"',
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ watchdog==2.2.1
multiprocess==0.70.14
jinja2==3.1.2
nestd==0.3.1
orjson==3.9.2
ujson==5.8.0
6 changes: 3 additions & 3 deletions robyn/responses.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import orjson
import ujson
from typing import Any, Dict


Expand Down Expand Up @@ -35,7 +35,7 @@ def jsonify(input_dict: dict) -> str:
:param input_dict dict: response of the function
"""

return orjson.dumps(input_dict).decode()
return ujson.dumps(input_dict)


json = orjson
json = ujson

0 comments on commit 814bc93

Please sign in to comment.