I have following DTOs:
@Value
public class PracticeResults {
@NotNull
Map wordAnswers;
}
@Value
public class ProfileMetaDto {
I faced this problem, but my solution did not involve adding this: (mode = JsonCreator.Mode.PROPERTIES)
What really solved my problem was the @JsonProperty
within the Constructor.
My final result was this:
@Value
public class ServerTimeResponse {
long serverTime;
@JsonCreator
public ServerTimeResponse(@JsonProperty("serverTime") long serverTime) {
this.serverTime = serverTime;
}
}