积少成多

垃圾堆

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  29 Posts :: 1 Stories :: 5 Comments :: 0 Trackbacks
JsonConfig config = new JsonConfig();
  config.setJsonPropertyFilter(new PropertyFilter() {
   public boolean apply(Object source, String name, Object value) {
    if (name.equals("form") || name.equals("formElm")   ) {
     return true;
    } else {
     return false;
    }
   }
  });
  
  JSONObject jsonObject = JSONObject.fromObject( form, config );
posted on 2011-07-20 16:14 思无 阅读(2865) 评论(0)  编辑  收藏 所属分类: Java

只有注册用户登录后才能发表评论。


网站导航: