锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品免费av一区二区三区,久久久国产精品亚洲一区,日本不卡视频一二三区http://www.aygfsteel.com/algz/category/38532.htmlPurple Butterfly Flying QQ緹?7101519 Flex,Ext,Spring,Hibernate,EOS,SpringSecurity,Struts http://algz.googlecode.com/svn/trunk/zh-cnFri, 24 Feb 2012 01:57:00 GMTFri, 24 Feb 2012 01:57:00 GMT60[杞琞 JSON-lib妗嗘灦錛岃漿鎹SON銆乆ML涓嶅啀鍥伴毦http://www.aygfsteel.com/algz/articles/370571.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Thu, 23 Feb 2012 02:56:00 GMThttp://www.aygfsteel.com/algz/articles/370571.htmlhttp://www.aygfsteel.com/algz/comments/370571.htmlhttp://www.aygfsteel.com/algz/articles/370571.html#Feedback0http://www.aygfsteel.com/algz/comments/commentRss/370571.htmlhttp://www.aygfsteel.com/algz/services/trackbacks/370571.html闃呰鍏ㄦ枃

绱澏鈭忛鎻氣啑 2012-02-23 10:56 鍙戣〃璇勮
]]>
EXTJS 涓帴鏀跺埌鐨?JSON 瀛楃涓茶漿鎹㈡垚 JS 鏁扮粍瀵硅薄,鍏蜂綋鍙互璺熻釜鏌ヨhttp://www.aygfsteel.com/algz/articles/228107.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Wed, 10 Sep 2008 03:53:00 GMThttp://www.aygfsteel.com/algz/articles/228107.htmlhttp://www.aygfsteel.com/algz/comments/228107.htmlhttp://www.aygfsteel.com/algz/articles/228107.html#Feedback0http://www.aygfsteel.com/algz/comments/commentRss/228107.htmlhttp://www.aygfsteel.com/algz/services/trackbacks/228107.html load : ( Object This, Object node, Object response )
Fires when the node has been successfuly loaded.

JS:

//[{"identity":"","title":"杞﹁韓閮ㄩ棬","date":"","uiProvider":"col","author":"","children":[{"identity":"杞﹁韓閮ㄩ棬"......
treeload.on('load', function(This, node, response) {                                 //浜嬩歡鐨勫弬鏁板彲鏌PI, 鍙傛暟鐨勫睘鎬у彲浠ョ敤 firebug 璺熻釜鏌ヨ.
    var t = Ext.util.JSON.decode(response.responseText);
    var n;
    if (t[0].children.length == 0)           //娉? length涓嶆槸JSON瀵硅薄,浠呬粎鏄疛S瀵硅薄鍐呯疆鏁扮粍灞炴?JS瀵硅薄璋冪敤: t[0].children
        n = n + 1;

绱澏鈭忛鎻氣啑 2008-09-10 11:53 鍙戣〃璇勮
]]>
JSF/JSP 涓?EXTJS 涔嬮棿 JSON 浜掍紶鏁版嵁(json-lib 鍜?org.json 瑙f瀽宸ュ叿)http://www.aygfsteel.com/algz/articles/203548.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Wed, 28 May 2008 08:16:00 GMThttp://www.aygfsteel.com/algz/articles/203548.htmlhttp://www.aygfsteel.com/algz/comments/203548.htmlhttp://www.aygfsteel.com/algz/articles/203548.html#Feedback4http://www.aygfsteel.com/algz/comments/commentRss/203548.htmlhttp://www.aygfsteel.com/algz/services/trackbacks/203548.html涓.org.json 瑙f瀽鍣?(鎺ㄨ崘浣跨敤,鏇撮傚悎浜庡璞℃ā鍨?
姒傝堪鍙婁緥瀛? http://code.google.com/p/json-simple/
API: http://code.google.com/p/json-simple/
渚?嫻嬭瘯閫氳繃,娉ㄦ剰寤惰繜鍔犺澆闂):
  JSONArray  jsona=new JSONArray();
  JSONObject jsono=new JSONObject();
  List<Author> l=authorDAO.findAll();
  for(Author a:l){
   jsono.put("author_num", a.getAuthorNam());
   jsono.put("author_nam", a.getAuthorNum());
   jsono.put("author_sex", a.getAuthorSex());
   jsono.put("author_level", a.getLevel().getLevelNam());
   jsono.put("author_department", a.getAuthorDepartment());
   jsona.add(jsono.clone());              //jsono.clone()榪斿洖瀹炰緥瀵硅薄;jsono浠呬粎鍙槸涓寚閽?br />    jsono.clear();                                //蹇呴』娓呴櫎鍐呭浠ュ涓嬫璋冪敤.
  }

浜?json-lib 瑙f瀽鍣?br /> (1)鎵闇渚濊禆鐨勭被鏂囦歡

Json-lib requires (at least) the following dependencies in your classpath:

  • jakarta commons-lang 2.3               //appach緗戠珯涓嬭澆鏈鏂扮殑
  • jakarta commons-beanutils 1.7.0     //appach緗戠珯涓嬭澆鏈鏂扮殑
  • jakarta commons-collections 3.2     //appach緗戠珯涓嬭澆鏈鏂扮殑
  • jakarta commons-logging 1.1          //appach緗戠珯涓嬭澆鏈鏂扮殑
  • ezmorph 1.0.4

璇﹁: http://json-lib.sourceforge.net/

(2)涓嬭澆JSON-LIB-2.2.1,騫舵煡鎵?ezmorph 1.0.4 鏂囦歡

https://sourceforge.net/project/showfiles.php?group_id=171425

(3)涓句緥:

 

 1import net.sf.json.JSONArray;
 2
 3
 4
 5boolean[] boolArray = new boolean[]{true,false,true};      
 6           JSONArray jsonArray1 = JSONArray.fromObject( boolArray );      
 7           System.out.println( jsonArray1 );      
 8           // prints [true,false,true]     
 9              
10           List list = new ArrayList();      
11           list.add( "first" );      
12           list.add( "second" );      
13           JSONArray jsonArray2 = JSONArray.fromObject( list );      
14           System.out.println( jsonArray2 );      
15           // prints ["first","second"]     
16  
17           JSONArray jsonArray3 = JSONArray.fromObject( "['json','is','easy']" );      
18           System.out.println( jsonArray3 );      
19           // prints ["json","is","easy"]  



绱澏鈭忛鎻氣啑 2008-05-28 16:16 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 长丰县| 东乌| 东阿县| 卢龙县| 宁强县| 长海县| 长白| 瑞金市| 太仆寺旗| 融水| 饶河县| 石泉县| 白山市| 华容县| 墨竹工卡县| 伊宁县| 福建省| 金塔县| 台州市| 怀集县| 九寨沟县| 海原县| 武定县| 华阴市| 麻江县| 靖远县| 镇沅| 资阳市| 莱州市| 棋牌| 敦煌市| 舒城县| 河间市| 台中市| 岳阳市| 乌拉特前旗| 会东县| 大同县| 鹤壁市| 梧州市| 江安县|