You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks for this great library!
I would like to serialize a dict whose keys are instances of a class coming from another library. I am already able to serialize these objects using enc_hook parameter to convert them as strings. But if these objects are converted to strings, why we cannot use them as keys for json dict ?
Thanks for opening this; you've found a bug! This currently works correctly for msgspec.msgpack.decode and msgspec.convert, but fails for msgspec.json.decode. Will fix.
Description
First, thanks for this great library!
I would like to serialize a dict whose keys are instances of a class coming from another library. I am already able to serialize these objects using enc_hook parameter to convert them as strings. But if these objects are converted to strings, why we cannot use them as keys for json dict ?
Here is a minimalist example:
The text was updated successfully, but these errors were encountered: