I have the following code
private val objectMapper: ObjectMapper = new ObjectMapper().registerModule(new DefaultScalaModule) .registerModule(new JavaTime