fastJson去掉指定字段
生活随笔
收集整理的這篇文章主要介紹了
fastJson去掉指定字段
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
public static String filterFieldsJson(Object src, Class<?> clazz, String... args)
{
SimplePropertyPreFilter filter = new SimplePropertyPreFilter(clazz, args);
return JSON.toJSONString(src, filter);
}
轉載于:https://www.cnblogs.com/Eilen/p/8377953.html
總結
以上是生活随笔為你收集整理的fastJson去掉指定字段的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IDFA 是什么iPhone 如何避免广
- 下一篇: 01背包(修订版)