Jackson operates java.time.Instant with WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS
(READ_
as well) enabled by default.
jackson-datatype-jsr310
It produces JSON like this
{ "createDate":1421261297.356000000, "modifyDate":1421261297.356000000 }
In JavaScript it's much easier to get Date from traditional millis timestamp (not from seconds/nanos as above), like new Date(1421261297356)
.
I think there should be some reason to have the nanos approach by default, so what is that reason?