Convert any object to pretty HTML in java

Posted by ripper234 on Stack Overflow See other posts from Stack Overflow or by ripper234
Published on 2010-05-24T07:22:32Z Indexed on 2010/05/24 7:41 UTC
Read the original article Hit count: 172

Filed under:
|

How can I convert a given object (in a generic way with reflection) to pretty printable HTML? What ready made library do you recommend that does this? I need support for simple nested objects (as long as they don't create loops in the object graph).

I tried to convert it to JSON, but DefaultPrettyPrinter is not HTML friendly.

© Stack Overflow or respective owner

Related posts about java

Related posts about html