Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Serialization field order by declaration order #358

Open
Labels
enhancementRequires or request to feature enhancement
@WongKit

Description

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

        AltStyle によって変換されたページ (->オリジナル) /