资 源 简 介
This project aims at providing a straightforward, easy to use, and configurable JSON exporter for Java objects. The implementation should be able to generate JSON representation for Java objects provided that there exists no cycle in the object graph.
Example:
1.
System.out.println(new DefaultExporter().export(elementNode.getSimpleTypeInfo()));
2.
```
DefaultExporterConfig config=new DefaultExporterConfig();
config.setExporterFilter(new ExporterFilter(){
@Override
public boolean accept(Class c) {
return true;
}
@Override
public boolean accept(Class c, PropertyDescriptor pd) {
if(SchemaType.class.isAssignableFrom(c)){
return pd.getName().equals("name");
}
return true;
}
})