Add @JsonCreator to non-public constructors
Apache 2.0Jackson 3 strictly enforces creator visibility rules. Non-public constructors in Jackson-annotated classes that were auto-detected in Jackson 2 need an explicit @JsonCreator annotation to work for deserialization in Jackson 3.
org. openrewrite. java. jackson. AddJsonCreatorToPrivateConstructorsmod run . --recipe= org. openrewrite. java. jackson. AddJsonCreatorToPrivateConstructorsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.