mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Small fix
This commit is contained in:
parent
d2c99fccf4
commit
0ae4f6d948
7 changed files with 19 additions and 5 deletions
12
aiogram/utils/json.py
Normal file
12
aiogram/utils/json.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
try:
|
||||
import ujson as json
|
||||
except ImportError:
|
||||
import json
|
||||
|
||||
|
||||
def dumps(data):
|
||||
return json.dumps(data)
|
||||
|
||||
|
||||
def loads(data):
|
||||
return json.loads(data)
|
||||
Loading…
Add table
Add a link
Reference in a new issue