Skip to content

@JsonCreator and companion object #110

@crumbpicker

Description

@crumbpicker

I have a question related to the @JsonCreator annotation. The Jacks library allows to use this annotation in combination with the companion object of the case class to be deserialized. It has the benefit to be less obstrusive than defining a secondary constructor in the case class. My problem is that it is sometimes hard to deal with multiple constructors having default values.

So is it possible with the scala module to use the @JsonCreator annotation in the companion object ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions