Add new method(s) in serializer/deserializer factory for accessing only "POJO" (de)serializer
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- backend-api-design
Research direction
Start by reviewing the existing serializer/deserializer factory lookup APIs and the Enum and POJO handling described in the issue. Trace how BeanSerializer is selected today, then determine the 3.x factory methods needed to request POJO serializers directly; done means shape-changing cases can select the POJO serializer without relying on the general Java-type lookup.
Written by the indexing model from the issue text.
Description
Although lookups by general Java type (Collection(-like), Map(-like), array, Enum, reference type, "other") works well for registering custom (de)serializers, there is one set of functionality where it is not sufficient: that of "shape-changing".
For example, when serializing Enum values "as POJOs" (by inspecting properties), lookup is needed ONLY for POJO serializer (BeanSerializer), and not for Enum type. But currently there is no way to explicitly specify desire for such (de)serializer. This requires clumsy work-arounds on factories, lack of extensibility. With 3.x we can add new methods to overcome this problem.
- Dominant language
- No language data
- Stars
- 6
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FasterXML/jackson3-dev
-
enhancement functionality-change
Difficulty 3/5 1-2 days Newbie friendliness 35/100
FasterXML/jackson3-dev#33 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
FasterXML/jackson3-dev#32 ·
-
Add `writeStartObject(Object, int)` in generator API to support fixed-element writes (CBOR et al) Open
Difficulty 3/5 1-2 days Newbie friendliness 42/100
FasterXML/jackson3-dev#30 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
FasterXML/jackson3-dev#29 ·
-
Change "invalid subtype" (security check) from `BeanDeserializerFactory` into `ClassNameIdResolver` Open
Difficulty 4/5 3-5 days Newbie friendliness 30/100
FasterXML/jackson3-dev#20 ·
All issues in FasterXML/jackson3-dev
Similar issues
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100