Has anyone encountered a universal Object to String formatter for Java? I’m imagining something that would use reflection to discovery properties of an arbitrary object (probably just a JavaBean, but probably including some properties which are Collections or Mapss) and format the object as a String? This is in a situation where I do not have any control over the toString() implementations of the target classes.
Does something like this exist somewhere?
Object serializers usually do exactly that. For example JSON serializes to text (JS more precisely) but there are others as well.