Skip to content

[Jackson 3] MonthSerializer should follow regular serializer not as plain Enum class.Β #5127

Closed

Description

@JooHyukKim

Is your feature request related to a problem? Please describe.

Currently java.time.Months MonthSerializer treats Month's as plain Enum. While implementation would be simple that way, it cannot or make difficult to leverage more robust features like JsonFormat shape overrides, and DateTimeFeatures.

Describe the solution you'd like

Remove Enum handling from java.time.Months MonthSerializer and do like MonthDayDeserializer?

Usage example

No response

Additional context

No response

Activity

  1. JooHyukKim commented on Apr 28, 2025

    @JooHyukKim
    MemberAuthor

    Added PR #5128 to discuss how it should behave

  2. added
    3.0-release-notesIssues relevant for 3.0 release notes.
    3.0Issue planned for initial 3.0 release
    and removed
    to-evaluateIssue that has been received but not yet evaluated
    on Apr 28, 2025
  3. added a commit that references this issue on May 2, 2025
    89f81dc
  4. cowtowncoder commented on May 2, 2025

    @cowtowncoder
    Member

    Thanks again @JooHyukKim !

  5. JooHyukKim commented on May 2, 2025

    @JooHyukKim
    MemberAuthor

    @cowtowncoder Any idea on where and how to document this behavior change? πŸ€”
    I am trying to figure out when user comes to report breaking behavior, what to tell that person?

  6. cowtowncoder commented on May 2, 2025

    @cowtowncoder
    Member

    @JooHyukKim Yeah that is the question. I am not quite sure. One possibility would be to add this to:

    https://github.com/FasterXML/jackson-future-ideas/wiki/JSTEP-2

  7. JooHyukKim commented on May 3, 2025

    @JooHyukKim
    MemberAuthor

    Makes sense, added to JSTEP-2

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0Issue planned for initial 3.0 release3.0-release-notesIssues relevant for 3.0 release notes.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions