According to the current information at the jackson github site, it is possible to configure the serializer using builder style construction. However what I don't see is what are the configuration options that you can use with this style.
From what I've seen, it looks like you can only include NON EMPTY fields when using JSON, but not using Xml. Is that right?
In particular I'd like to serialize some POJO data to XML and exclude Empty fields using version 2.15. Does anyone know how to use this feature or point me to the documentation on how to use it?
You can do
ObjectMapper objectMapper = new XmlMapper()
.setSerializationInclusion(Include.NON_EMPTY)
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
.enable(SerializationFeature.INDENT_OUTPUT)
.configure(SerializationFeature.WRITE_ENUMS_USING_INDEX, true);
See SerializationFeature and DeserializationFeature for available serialization / deserialization options