I have an object with the java.util.Date attribute that I am serializing using the AE Cloud Endpoint Service. From the client, when I just send the date, everything works fine (for example: "2013-05-27"). When I try to add time, it fails:
{"error": {"message": "com.google.appengine.repackaged.org.codehaus.jackson.map.JsonMappingException: Invalid date / time format: 2013-05-27T12: 00 (via the link chain: com.foo .MyObject [\ "date \"]) "}}
The best resource for the Danish Jackson default format that I could find is here: http://wiki.fasterxml.com/JacksonFAQDateHandling . I tried completely ISO-8601 "1970-01-01T00: 00: 00.000 + 0000", which also failed. I also tried the UNIX timestamp, which did not fail to parse, but set the date to 1372.
So, a two-part question. One, what is the correct default format to use? And two, can we change (do we have access to) the jackson configuration so that we can set our own serialization format?
source share