将集合中的对象所有get方法序列化为json格式
摘要:
/** * 将集合中的对象所有get方法序列化为json格式 * @author E.FLY * @date 2012-4-7 * @time 上午01:45:02 * @param collection */ public String mySerializeJosnForAjax(Collection collection){ JSONArray array = new JSONArray(); JSONObject js = new JSONObject(); try { if(collection.size()>0){ for (Ob... 阅读全文
posted @ 2012-04-11 22:56
e.FLY
阅读(540)
评论(0)
推荐(0)
浙公网安备 33010602011771号