1

Parsing ASP.NET MVC returned date using Jackson JSON library in Java

view story
linux-howto

http://stackoverflow.com – I am parsing JSON from server in my Android application by using Jackson JSON library. However, parsing requests fail whenever I receive DateTime since it's in this format: "/Date(1277931782420)/" I know I should do something like: ObjectMapper om = new ObjectMapper(); om.setDateFormat(new TicksSinceFormat()); But I have no idea if I can use SimpleDateFormat at all (and what format string would I use?) or I need to write my own DateFormat parser. So, I would seriously appreciate if somebody could help with code example. EDIT: OK, I've came up with this class, but after parse method is i (HowTos)