Skip to content

Feature Request: Allow access in JsonbSerializer and JsonbDeserializer for the AnnotatedElement being processed #375

@jamezp

Description

@jamezp

There are cases during serialization and deserialization where it would be useful to have the current java.lang.reflect.AnnotatedElement of the object being serialized or deserialized. The AnnotatedElement could be found on the current SerializationContext or DeserializationContext context or new methods could be added to the JsonbSerializer and the JsonbDeserializer which pass a parameter.

The use-case is looking up an annotation on a element which could provide additional information for serialization and deserialization. For example being able to look up the @JsonbDateFormat when you have a custom serializer for some kind of date object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions