-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
pr-welcomeIssue for which progress most likely if someone submits a Pull RequestIssue for which progress most likely if someone submits a Pull Request
Description
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
Labels
pr-welcomeIssue for which progress most likely if someone submits a Pull RequestIssue for which progress most likely if someone submits a Pull Request