Is possible use regular expression for the jsonproperty annotation and how is it done?
I have json from third party who prefix properties like below:
{
"1. information": "testing"
"2. information": "testing 2"
}
I would like that all information get attach to list Array information, see below example of pseudo:
public class TimeSeries {
@JsonProperty(/.*information/g)
private List<String> information;
}
Sometimes some of String properties is also postfix with date, is possible, but have unique name besides that. Is possible to use regular expression here?
{
"Price 2019-09-01": "testing"
"Quantity 2019-09-01": "testing 2"
}