, .
@JsonProperty , . @JsonProperty(value = "draw"). , JSON, DataTable. JSON
{
"draw":1,
"columns":[
{"data":0,"name":"","searchable":true,"orderable":false,"search":{"value":"","regex":false}},
{"data":1,"name":"","searchable":true,"orderable":false,"search":{"value":"","regex":false}}],
"order":[],
"start":0,
"length":-1,
"search":{"value":"","regex":false}
}
It is also necessary to have an empty constructor defined for DataTablesRequest, Column, Orderand Search. If you do not want to have a default constructor, you can add it as shown below,
public Search(@JsonProperty("value") String value,@JsonProperty("regex") String regex) {
}
Hope this helps!
source
share