Skip to content

Allow JsonNames on classes #3127

@ansman

Description

@ansman

What is your use-case and why do you need this feature?
We have polymorphic type that maps to two labels when decoding so I'd need a way to indicate that a type has two type constants.

Describe the solution you'd like
I propose the @JsonNames annotation be allowed on classes which would be used in addition to @SerialName (today it can only be used for properties).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions