public class JsonDateDeserializer
extends com.fasterxml.jackson.databind.JsonDeserializer<java.util.Date>
java.util.Date like any other object. Jackson, however, (the
current method) converts the date to "epoch time" (a long representing
milliseconds since January 1, 1970, 00:00:00 GMT). The Jackson approach
isn't that useful, since it becomes hard to detect what is a date. This
class is responsible for telling Jackson to use the former method.| Constructor and Description |
|---|
JsonDateDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
deserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext ctx) |
deserialize, deserializeWithType, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializerpublic java.util.Date deserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext ctx)
throws com.fasterxml.jackson.core.JsonParseException,
java.io.IOException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<java.util.Date>com.fasterxml.jackson.core.JsonParseExceptionjava.io.IOException