锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品123区在线观看,亚洲宅男天堂在线观看无病毒,亚洲裸男gv网站http://m.tkk7.com/myqiao/category/38776.htmlzh-cnMon, 04 Oct 2010 16:38:15 GMTMon, 04 Oct 2010 16:38:15 GMT60鐑偣涔﹀簱灝忚澶氱嚎紼嬩笅杞藉櫒 V1.0http://m.tkk7.com/myqiao/archive/2009/04/29/268010.html宸︽錘宸︽錘Tue, 28 Apr 2009 17:12:00 GMThttp://m.tkk7.com/myqiao/archive/2009/04/29/268010.htmlhttp://m.tkk7.com/myqiao/comments/268010.htmlhttp://m.tkk7.com/myqiao/archive/2009/04/29/268010.html#Feedback8http://m.tkk7.com/myqiao/comments/commentRss/268010.htmlhttp://m.tkk7.com/myqiao/services/trackbacks/268010.html闃呰鍏ㄦ枃

宸︽錘 2009-04-29 01:12 鍙戣〃璇勮
]]>
鐢查鏂?4浜跨編鍏冩敹璐璖UNhttp://m.tkk7.com/myqiao/archive/2009/04/20/266631.html宸︽錘宸︽錘Mon, 20 Apr 2009 15:43:00 GMThttp://m.tkk7.com/myqiao/archive/2009/04/20/266631.htmlhttp://m.tkk7.com/myqiao/comments/266631.htmlhttp://m.tkk7.com/myqiao/archive/2009/04/20/266631.html#Feedback4http://m.tkk7.com/myqiao/comments/commentRss/266631.htmlhttp://m.tkk7.com/myqiao/services/trackbacks/266631.html

宸︽錘 2009-04-20 23:43 鍙戣〃璇勮
]]>
浣跨敤Java鎿嶄綔JSON瀛楃涓插璞★紙杞澆鏀惰棌錛?/title><link>http://m.tkk7.com/myqiao/archive/2009/04/04/263844.html</link><dc:creator>宸︽錘</dc:creator><author>宸︽錘</author><pubDate>Fri, 03 Apr 2009 16:08:00 GMT</pubDate><guid>http://m.tkk7.com/myqiao/archive/2009/04/04/263844.html</guid><description><![CDATA[<p>1銆佸鏋滄垜浠渶瑕佸疄鐜頒竴涓厤緗鐞嗙殑鍔熻兘錛岄偅涔堜負姣忎釜閰嶇疆欏圭洰澧炲姞涓涓瓧孌墊棦澶嶆潅涔熶笉鍒╀簬鎵╁睍錛屾墍浠ユ垜浠氬父浣跨敤涓涓瓧絎︿覆鏉ヤ繚瀛橀厤緗」鐩俊鎭紝榪欓噷浠嬬粛濡備綍浣跨敤json鐨勫瓧絎︿覆瑙f瀽鏉ヨ揪鍒板垰鎵嶈鐨勭洰鐨勩傚紩鍏son闇瑕佺殑綾誨簱錛?</p> <div id="mgaywwg" class="cnblogs_code"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" /><span style="color: #0000ff">import</span><span style="color: #000000"> org.json.JSONException;   <br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> org.json.JSONObject;  </span></div> <p><br /> 2銆佺敓鎴愪竴涓猨son瀵硅薄(鍙互娣誨姞涓嶅悓綾誨瀷鐨勬暟鎹?錛?</p> <div id="okaoskm" class="cnblogs_code"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">JSONObject jsonObject </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> JSONObject();<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" />jsonObject.put(</span><span style="color: #000000">"</span><span style="color: #000000">a</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">1</span><span style="color: #000000">);   jsonObject.put(</span><span style="color: #000000">"</span><span style="color: #000000">b</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">1.1</span><span style="color: #000000">);<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" />jsonObject.put(</span><span style="color: #000000">"</span><span style="color: #000000">c</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">1L</span><span style="color: #000000">);<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" />jsonObject.put(</span><span style="color: #000000">"</span><span style="color: #000000">d</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">"</span><span style="color: #000000">test</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" />jsonObject.put(</span><span style="color: #000000">"</span><span style="color: #000000">e</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #0000ff">true</span><span style="color: #000000">);<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" />System.out.println(jsonObject);<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000">{"d":"test","e":true,"b":1.1,"c":1,"a":1}  </span></div> <p> </p> <p><br /> 3銆佽В鏋愪竴涓猨son瀵硅薄(鍙互瑙f瀽涓嶅悓綾誨瀷鐨勬暟鎹?錛実etJSONObject(String str)錛?/p> <div id="ssqmiis" class="cnblogs_code"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">jsonObject </span><span style="color: #000000">=</span><span style="color: #000000"> getJSONObject(</span><span style="color: #000000">"</span><span style="color: #000000">{d:test,e:true,b:1.1,c:1,a:1}</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" />System.out.println(jsonObject);<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000">{"d":"test","e":true,"b":1.1,"c":1,"a":1}</span><span style="color: #008000"><br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">System.out.println(jsonObject.getInt(</span><span style="color: #000000">"</span><span style="color: #000000">a</span><span style="color: #000000">"</span><span style="color: #000000">));<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" />System.out.println(jsonObject.getDouble(</span><span style="color: #000000">"</span><span style="color: #000000">b</span><span style="color: #000000">"</span><span style="color: #000000">));<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" />System.out.println(jsonObject.getLong(</span><span style="color: #000000">"</span><span style="color: #000000">c</span><span style="color: #000000">"</span><span style="color: #000000">));<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" />System.out.println(jsonObject.getString(</span><span style="color: #000000">"</span><span style="color: #000000">d</span><span style="color: #000000">"</span><span style="color: #000000">));<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" />System.out.println(jsonObject.getBoolean(</span><span style="color: #000000">"</span><span style="color: #000000">e</span><span style="color: #000000">"</span><span style="color: #000000">));</span></div> <p><br /> 4銆?/p> <div id="iokuyye" class="cnblogs_code"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><img id="Codehighlighter1_51_362_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_51_362_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_51_362_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_51_362_Closed_Text').style.display='inline';" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_51_362_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_51_362_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_51_362_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_51_362_Open_Text').style.display='inline';" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> JSONObject getJSONObject(String str) </span><span id="Codehighlighter1_51_362_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span id="Codehighlighter1_51_362_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_106_142_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_106_142_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_106_142_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_106_142_Closed_Text').style.display='inline';" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_106_142_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_106_142_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_106_142_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_106_142_Open_Text').style.display='inline';" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> (str </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000"> </span><span style="color: #000000">||</span><span style="color: #000000"> str.trim().length() </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">) </span><span id="Codehighlighter1_106_142_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span id="Codehighlighter1_106_142_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align="top" />        JSONObject jsonObject </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img id="Codehighlighter1_193_250_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_193_250_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_193_250_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_193_250_Closed_Text').style.display='inline';" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_193_250_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_193_250_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_193_250_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_193_250_Open_Text').style.display='inline';" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span style="color: #0000ff">try</span><span style="color: #000000"> </span><span id="Codehighlighter1_193_250_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span id="Codehighlighter1_193_250_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align="top" />            jsonObject </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> JSONObject(str);<br /> <img id="Codehighlighter1_275_329_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_275_329_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_275_329_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_275_329_Closed_Text').style.display='inline';" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_275_329_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_275_329_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_275_329_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_275_329_Open_Text').style.display='inline';" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        }</span></span><span style="color: #000000"> </span><span style="color: #0000ff">catch</span><span style="color: #000000"> (JSONException e) </span><span id="Codehighlighter1_275_329_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span id="Codehighlighter1_275_329_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align="top" />            e.printStackTrace(System.err);<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> jsonObject;<br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top" /></span></div> <p> </p> <p>鍖呬笅杞藉湴鍧錛?a >http://www.json.org/java/index.html</a></p> <img src ="http://m.tkk7.com/myqiao/aggbug/263844.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/myqiao/" target="_blank">宸︽錘</a> 2009-04-04 00:08 <a href="http://m.tkk7.com/myqiao/archive/2009/04/04/263844.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>娣卞叆嫻呭嚭JSON (杞澆鏀惰棌)http://m.tkk7.com/myqiao/archive/2009/04/03/263841.html宸︽錘宸︽錘Fri, 03 Apr 2009 15:54:00 GMThttp://m.tkk7.com/myqiao/archive/2009/04/03/263841.html闃呰鍏ㄦ枃

宸︽錘 2009-04-03 23:54 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲毛片在线免费观看| 国产乱子影视频上线免费观看| 又大又硬又爽免费视频| 亚洲一卡二卡三卡| 777成影片免费观看| 亚洲精品视频在线| 欧洲人免费视频网站在线| 亚洲av无码国产精品夜色午夜| a毛片免费观看完整| 久久久久久亚洲精品| a毛片免费全部播放完整成| 伊人久久大香线蕉亚洲| 免费无码又爽又刺激一高潮| 国外亚洲成AV人片在线观看| 天堂在线免费观看| 久久精品国产精品亚洲艾草网| 97在线视频免费公开观看| 亚洲大香伊人蕉在人依线| 久久不见久久见中文字幕免费 | a毛片免费全部播放完整成| 久久亚洲国产欧洲精品一| 免费无码VA一区二区三区| 久久亚洲精品国产亚洲老地址 | 在线观看国产一区亚洲bd| 全亚洲最新黄色特级网站 | 边摸边吃奶边做爽免费视频网站| 亚洲国产精品成人久久蜜臀| 中国国语毛片免费观看视频| 亚洲一区二区三区夜色| 啦啦啦高清视频在线观看免费| 国产亚洲精彩视频| 好看的电影网站亚洲一区| 亚洲高清中文字幕免费| 阿v免费在线观看| 激情内射亚洲一区二区三区| 夜夜嘿视频免费看| 你是我的城池营垒免费看 | 亚洲国产精品无码av| 波多野结衣免费在线| 黄色网址大全免费| 亚洲视频一区在线播放|