Open
Description
Hello !
I'm looking to switch from simplejson to rapidjson.
I need to have my objects serialized in bytes.
Does rapidjson work internaly in str or in bytes in utf_8 ? If in bytes, to avoid loosing performences with two additionals conversions (one inside rapidjson bytes >str ) and one outside with encode ( my_object_serialized_bytes = dumps (my_object).encode ("utf_8")), I would like to have an option my_object_serialized_bytes = dumps (my_object, to_bytes = True) or something like that. Do you think it would be easy to add it? Dump already accept files open in binary mode.
If yes, it could be great if RawJSON could take bytes too !
Thank you very much!
Metadata
Metadata
Assignees
Labels
No labels