Skip to content

Tag: java

Jackson serializing: Get list of processed objects

For a special case, I need to know which “source objects” of the object tree Jackson processed during serialization. I think there is some internal list, because Jackson might reuse already serialized objects if they are referenced multiple times in the object tree. Can I get this list? Or is it p…

Jsoup HtmlToPlainText function adding extra new line

If the text is already plain text and passed to the function new HtmlToPlainText().getPlainText() then the new line character is getting added to the result text. It looks like Jsoup is doing some formatting and adding a line break. I tried outputSettings.prettyPrint(false); but it is not helping. Input text …