JsonConfig中setExcludes方法的使用

来源:互联网 发布:iphone数据恢复工具 编辑:程序博客网 时间:2024/04/28 12:38

class test {

   private String s;

   private Date d;

}

 

使用setExcludes过滤不需要转换的属性

JsonConfig cfg = new JsonConfig();

cfg.setExcludes(new String[] { "d" });