Java调试打印复杂对象

XStream xx = new XStream(new JsonHierarchicalStreamDriver(){
    public HierarchicalStreamWriter createWriter(Writer writer) {
        return new JsonWriter(writer, JsonWriter.DROP_ROOT_MODE);
    }
});
System.out.println(xx.toXML(metric));


你可能感兴趣的:(java,return,public)