Obviously, with Eclipse Yasson JsonbDateFormat.TIME_IN_MILLIS annotation returns the date number as string:
import javax.json.bind.annotation.JsonbDateFormat;
class MyObject {
@JsonbDateFormat(JsonbDateFormat.TIME_IN_MILLIS)
Date myDate;
}
e.g outputs (quoted number)
{"myDate":"1234567890"}
How can I configure the json-b to omit the quotes around the number (like default behavior with Jackson)?, e.g.:
{"myDate":1234567890}