Skip to content

Serialization field order by declaration order #358

@WongKit

Description

@WongKit

Hi,

is it possible to optionally let MsgPack sort the serialized data by the original declaration order instead of the alphabetical one? I am working in a project, where the original field names are scrambled by an obfuscator.
Using the MessagePackMember attribute would only be the very last resort due to the huge amount of serialized classes to be changed manually.

According to StackOverflow, the MetadataToken property might be used for sorting.
https://stackoverflow.com/a/8067702

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequires or request to feature enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions