This question's answer (Convert JSON many objects to single JSON using Jackson) explains how to flatten JSON using Jackson, with @Attributes.
Is there a way to tell a Jackson ObjectMapper to recursively flatten all composite fields, without adding annotations? And if so, is there a way to specify that the field names be prefixed with the parent (containing) object's name?
My goal is to get a a Map out. I could write this as a recursive function, but if I can use Jackson, I'd like not to re-invent wheels.