skip to Main Content

JSON to Java object deserialization exception

@Data @NoArgsConstructor @AllArgsConstructor public class MatchingResponse { @JsonProperty(value = "Code") private String code; @JsonProperty(value = "Msg") private String message; @JsonProperty(value = "Id") private int id; @JsonProperty(value = "Date") private String date; @JsonProperty(value = "ClientIin") private String clientIin; @JsonProperty(value = "Similarity")…

VIEW QUESTION

Unable to create Regex for JSON value

I have JSON for which I sometimes got some alphanumeric name in one key value name and sometimes it is null like below. {"name":"77Watcher"} {"name":null} I have to validate the data I am using like below. {"name":"${json-unit.matches:^([A-Za-z0-9]+|null)$}"} But getting Matcher…

VIEW QUESTION
Back To Top
Search