Skip to content

Support @JsonSerialize(keyUsing) and @JsonDeserialize(keyUsing) on Key class #2503

@cowtowncoder

Description

@cowtowncoder

(note: follow up on #2454)
Although keyUsing property of @JsonSerialize and @JsonDeserialize annotations is supported for properties (added to Methods and Fields) -- as well as when added on Map (sub-)class, one specific usage that seems intuitive is not yet supported as of 2.10.0:

@JsonDeserialize(keyUsing = MyKeyDeserializer.class)
@JsonSerialize(keyUsing = MyKeySerializer.class)
public class KeyType {
    // ...
}

But it probably should be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions