There is custom Json serializer(for ObjectMapper) in my Spring MVC REST application:
public class DateSerializer extends JsonSerializer<LocalDate>
{
public LocalDateSerializer()
{
super();
}
@Override
public void serialize(LocalDate value, JsonGenerator jgen, SerializerProvider provider) throws IOException
{
if (value != null)
{
jgen.writeNumber(value.toDateTimeAtStartOfDay().getMillis());
}
}
}
and service returns json representation of this field with exponential notation format e.g. 1.377216E12 instead of normal timestamp format.And this happens not for all server platforms.
Many thanks in advance.