could some one explain me why Spring Boot is not able to deserialize this JSON? Based on this online validator, it is valid JSON.
{
"name": "someName"
}
I am getting this error:
"Cannot construct instance of `com.znamenacek.debtor.dto.GroupDto$Request$Create` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator)\n at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 2, column: 5]"
The class I am trying to serialize/deserialize is following:
@Value @Builder(toBuilder = true) @ToString
public static class Create{
@NotBlank(message = "Name must be filled")
String name;
}
I have just discovered that it is accepting the value in this format:
"someName"
To me it seems strange ...