FasterXML / FasterXML/jackson3-dev

Add new method(s) in serializer/deserializer factory for accessing only "POJO" (de)serializer

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.