Skip to content
Advertisement

Tag: xml-to-json

Mapping to “” instead of null Jackson

I have a function that reads XML from a Kafka topic into String format, which I then want to convert to a JSON Object. Example XML: I then have POJO Classes such as: (with lombok getter/setter/toString and jackson annotation imports) I am then using a MappingJackson2XmlHttpMessageConverter to get an Object Mapper, and using that to map the XML string to

Advertisement