fastJson去掉指定字段

public static String filterFieldsJson(Object src, Class<?> clazz, String... args)
{
SimplePropertyPreFilter filter = new SimplePropertyPreFilter(clazz, args);
return JSON.toJSONString(src, filter);
}im

相關文章
相關標籤/搜索