File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
resources/sdk/purecloudjava/templates Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
77import com.fasterxml.jackson.databind.SerializationFeature;
88import com.fasterxml.jackson.databind.module.SimpleModule;
99import com.fasterxml.jackson.datatype.joda.JodaModule;
10+ import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
1011
1112import java.io.ByteArrayInputStream;
1213import java.io.InputStream;
@@ -182,6 +183,7 @@ public class ApiClient implements AutoCloseable {
182183 objectMapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
183184 objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
184185 objectMapper.registerModule(new JodaModule());
186+ objectMapper.registerModule(new JavaTimeModule());
185187 objectMapper.setDateFormat(dateFormat);
186188 SimpleModule localDateModule = new SimpleModule();
187189 localDateModule.addSerializer(LocalDate.class, new LocalDateSerializer());
Original file line number Diff line number Diff line change 308308 <artifactId >jackson-datatype-joda</artifactId >
309309 <version >${jackson-version} </version >
310310 </dependency >
311+ <dependency >
312+ <groupId >com.fasterxml.jackson.datatype</groupId >
313+ <artifactId >jackson-datatype-jsr310</artifactId >
314+ <version >${jackson-version} </version >
315+ </dependency >
311316 <dependency >
312317 <groupId >joda-time</groupId >
313318 <artifactId >joda-time</artifactId >
You can’t perform that action at this time.
0 commit comments