FasterXML / FasterXML/jackson-databind

Should there be a KeySerializer?

Open
#6,112 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.7k
Forks
1.5k
Avg merge
3d 6h
Merged PRs (30d)
28

Description

There's `ValueSerializer`, `ValueDeserializer`, and `KeyDeserializer` but no `KeySerializer`. Should there be one?

I'm on Spring Boot and trying to convert my modules into `@JacksonComponent`. I noticed that the annotation won't work for key serializers, since there is no base class for them, as they're just regular `ValueSerializer`s that use `writeFieldName`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the existing ValueSerializer, ValueDeserializer, and KeyDeserializer abstractions and reviewing how @JacksonComponent discovers components. Determine whether key serializers need a distinct base class for annotation support; done requires a documented design decision and agreed scope for any follow-up work.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.