Cysharp / MemoryPack

Zero encoding extreme performance binary serializer for C# and Unity.
MIT License
3.25k stars 190 forks source link

Can we have ConvertToJson? #269

Closed jonathanperis closed 6 months ago

jonathanperis commented 6 months ago

Hello!

Can we have ConvertToJson functionality on MemoryPack as we have on MessagePack? - https://github.com/MessagePack-CSharp/MessagePack-CSharp?tab=readme-ov-file#quick-start

neuecc commented 6 months ago

It is not possible. This is because MessagePack retains some type information within its binary data, while MemoryPack does not include any at all.