I have a problem with date deserialization on client side. I have to build a simple desktop java aplication that consumes JSON. My code:
ClientConfig config = new DefaultClientConfig();
config.getClasses().add(JacksonJsonProvider.class);
Client client = Client.create(config);
I've tried to use this solution but it doesn't work for me: How to deserialize JS date using Jackson?
I need a date in this format: "dd.MM.yyyy.", but I'm always getting this error no matter what:
Can not construct instance of java.util.Date from String value '12.10.1971.': not a valid representation (error: Can not parse date "12.10.1971.": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
Thank you for your help.