List of usage examples for com.fasterxml.jackson.databind PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy
PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy
From source file:org.openmhealth.dsu.configuration.JacksonConfiguration.java
@Bean public ObjectMapper objectMapper() { ObjectMapper objectMapper = new ObjectMapper(); // serialise timestamps in an ISO8601 textual representation objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); // serialise keys in snake_case objectMapper.setPropertyNamingStrategy(new PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy()); return objectMapper; }