Serializing to bytes #475
davetapley
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hi @davetapley |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the spirit of #450 I'd like to propose a feature to optionally serialize JSON to
bytes
.However:
pyserde
supports bothjson
andorjson
(here), andjson
says:So: How do you feel about a serializer which would do
.encode('utf-8')
in the absence oforjson
,and use
orjson.dumps
otherwise?Beta Was this translation helpful? Give feedback.
All reactions