jakartaee / jakartaee/jsonb-api
Apply adapter introduced with annotations for related types
- Dominant language
- Java
- Stars
- 95
- Forks
- 41
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 35
Description
Currently, when annotating a field of type `F` with `@JsonbTypeAdapter(MyAdapter.class)`, the adapter must have `F` as original parameterized type (or compatible with `F`). But it would be very useful to be able to use adapters more generally on common collection types. Example: annotate a field of type `List` to make it use an adapter ``. Currently, if I understand correctly, I need to create an adapter from `List` to `JsonObject` to adapt such a field, which reduces significantly the power of Jsonb.
Contributor guide
Research direction
No source files or tests are named. Start by tracing how @JsonbTypeAdapter handles adapter parameter types for annotated fields, then define and test support for a List field using an adapter from F to JsonObject; done means the annotation works without requiring a List-specific adapter.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100