Skip to content

Feature Request: Add full deserialization support to @JsonPropertyOrder annotation #2067

@el-denis

Description

@el-denis

Hello.
This cannot be classified as a defect because annotation doc clearly says: "This annotation may or may not have effect on deserialization"

Ordering during serialization may be enough if other side (web app UI for instance) does not change the order of fields on their side. But for JS UI frameworks it is rather common to serialize JSON fields in alphabetical order. (Angular HTTPClient is a good example).

As the result - field order in JSON is changed and for whatever reason @JsonPropertyOrder was added to an Entity - it doesn't help anymore.

There's a bunch of way to solve it (field renaming, custom Deserializer, getting rid of dependency on fields order to name the few), but having a natively supported annotation is the best.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pr-welcomeIssue for which progress most likely if someone submits a Pull Request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions