use of net.sf.json.util.PropertyFilter in project topcom-cloud by 545314690.
the class JsonUtil method getNoNullConfig.
public static JsonConfig getNoNullConfig() {
JsonConfig config = new JsonConfig();
config.setJsonPropertyFilter(new PropertyFilter() {
@Override
public boolean apply(Object o, String s, Object o1) {
return o1 == null || o1.equals(JSONNull.getInstance());
}
});
return config;
}
Aggregations