Skip to content

Option to use custom json lib for encoding #12

@mahenzon

Description

@mahenzon

Right now builtin json lib is used:

return json.loads(fmt, object_pairs_hook=dictionary)

return json.dumps(

But there're other libs that are faster, for example orjson, ujson, rapidjson, simplejson.. and more. It'll be cool to have an ability to change encoder (for speed and compatibility purposes).

Possible solution to make it flexible:
https://github.com/aiogram/aiogram/blob/dev-2.x/aiogram/utils/json.py

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions