static {
   objectMapper.setVisibilityChecker(
       objectMapper.getVisibilityChecker().withFieldVisibility(Visibility.ANY));
   objectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
 }
 {
   mapper.getSerializationConfig().setSerializationInclusion(JsonSerialize.Inclusion.NON_NULL);
   mapper.enableDefaultTyping();
 }