I have a self-generated client response class:
import javax.json.bind.annotation.JsonbProperty;
public class MyClass {
@JsonbProperty("name-surname")
private String nameSurname;
//getter and setter
}
the client response json is:
{
"name-surname":"Jack Jones"
}
The problem is that the @JsonbProperty annotation does not work in this case and therefore the field is not read., is there a solution?