-
|
Hi! With Jackson 2 I was able to successfully deserialize the following json: Unfortunately with Jackson 3 I'm gettting an error: Why I'm getting this although there is a constructor in NestedClass? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Jackson 3 has many default settings that are different from Jackson 2. You may want to try making Jackson 3 use the Jackson 2 default configs (documented in link above) |
Beta Was this translation helpful? Give feedback.
-
|
So I managed to fix the issue by adding: |
Beta Was this translation helpful? Give feedback.
So I managed to fix the issue by adding:
@AllArgsConstructor(onConstructor_ = @JsonCreator(mode = JsonCreator.Mode.DELEGATING))to the
NestedClass