String json = "{name:'nutz', age:12, address:[{area:1,name:'abc'}, {area:2,name:'123'}]}";
Object obj = Json.fromJson(json);
List<String> list = new ArrayList<>();
list.add("age");
//list.add("address[].area"); //本行注释掉,不注释没问题
System.out.println(Mapl.excludeFilter(obj, list));
结果:{name=nutz, address=[{area=1, name=abc}, {area=2, name=123}, {area=1, name=abc}, {area=2, name=123}]}
代码list.add("address[].area");被注释, 数组数据被复制了一遍
不注释没问题