You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
According to jsonb-api (JsonbDateFormat#TIME_IN_MILLIS), a date formatted with the TIME_IN_MILLIS formatter shall be serialized as a number. This is not the case. Such dates are serialized as strings.
Describe the bug
According to jsonb-api (JsonbDateFormat#TIME_IN_MILLIS), a date formatted with the
TIME_IN_MILLIS
formatter shall be serialized as a number. This is not the case. Such dates are serialized as strings.Explicit conversion to string is made here:
yasson/src/main/java/org/eclipse/yasson/internal/serializer/AbstractDateTimeSerializer.java
Line 67 in e7ff427
Then, this string is escaped when writing the JSON object in JsonGenerator#write(String).
To Reproduce
Serialize an instance of:
The JSON will looks like
Expected behavior
JSON should looks like
System information:
Additional context
Deserialization works fine, with both representation:
The text was updated successfully, but these errors were encountered: