首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 一个简单的,易于使用的,可配置的JSON出口商。

一个简单的,易于使用的,可配置的JSON出口商。

资 源 简 介

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; } })
VIP VIP
0.186421s