-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Milestone
Description
Although it is possible to use a work-around for accepting alternate property names (by adding secondary setters), it would probably be better to allow an explicit annotation support.
This could be something as easy as:
@JsonProperty(value="name", alias={ "oldName", "anotherOldName" })
and would work so that alternative names would be also accepted, but would not be considered the primary name (would not affect serialization for example).
This feature would seem most useful for versioning purposes, to essentially allow for renaming of properties. This is how other formats like Avro handle backwards compatibility.
gregorej, thesmith, Noddy76, RobertoUa, fdln and 2 morefdln and asaf-romano
Metadata
Metadata
Assignees
Labels
No labels