Skip to content

Support JsonCreator annotation in reflection-free deserializers #46480

@fedinskiy

Description

@fedinskiy

Description

At this time reflection-free deserialization works only for POJO classes with getters and setters. This may be undesirable in some cases (eg user may prefer immutable objects). I suggest to add support for @JsonCreator[1] and related annotations, so objects can be deserialized using constructors.

This feature was first suggested as a solution to this issue: #46458

[1] https://fasterxml.github.io/jackson-annotations/javadoc/2.7/com/fasterxml/jackson/annotation/JsonCreator.html

Implementation ideas

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/jacksonIssues related to Jackson (JSON library)kind/enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions