Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fedotxxl/3c00704e5b73ef5554ea to your computer and use it in GitHub Desktop.
Save fedotxxl/3c00704e5b73ef5554ea to your computer and use it in GitHub Desktop.
JacksonJsonProvider jacksonJsonProvider = new JacksonJaxbJsonProvider();
ObjectMapper objectMapper = new ObjectMapper()
.setPropertyNamingStrategy(PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES)
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
jacksonJsonProvider.setMapper(objectMapper);
client = ClientBuilder.newClient().register(jacksonJsonProvider);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment