Class YamlObjectDumper

  • All Implemented Interfaces:
    Map<Object,​String>

    public class YamlObjectDumper
    extends AbstractMap<Object,​String>
    This gets an Object as argument and recursively dumps all properties into a JSON. Not threadsafe.

    Use in a JSP e.g.:

     DUMP:
     <%= new com.composum.nodes.debugutil.YamlObjectDumper().get(pageContext.getAttribute("variable")) %>