锘??xml version="1.0" encoding="utf-8" standalone="yes"?>第九色区aⅴ天堂久久香,久久午夜电影,欧美精品电影免费在线观看http://www.aygfsteel.com/myqiao/category/38776.htmlzh-cnMon, 04 Oct 2010 16:38:15 GMTMon, 04 Oct 2010 16:38:15 GMT60鐑偣涔﹀簱灝忚澶氱嚎紼嬩笅杞藉櫒 V1.0http://www.aygfsteel.com/myqiao/archive/2009/04/29/268010.html宸︽錘宸︽錘Tue, 28 Apr 2009 17:12:00 GMThttp://www.aygfsteel.com/myqiao/archive/2009/04/29/268010.htmlhttp://www.aygfsteel.com/myqiao/comments/268010.htmlhttp://www.aygfsteel.com/myqiao/archive/2009/04/29/268010.html#Feedback8http://www.aygfsteel.com/myqiao/comments/commentRss/268010.htmlhttp://www.aygfsteel.com/myqiao/services/trackbacks/268010.html闃呰鍏ㄦ枃

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

宸︽錘 2009-04-20 23:43 鍙戣〃璇勮
]]>
浣跨敤Java鎿嶄綔JSON瀛楃涓插璞★紙杞澆鏀惰棌錛?/title><link>http://www.aygfsteel.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://www.aygfsteel.com/myqiao/archive/2009/04/04/263844.html</guid><description><![CDATA[<p>1銆佸鏋滄垜浠渶瑕佸疄鐜頒竴涓厤緗鐞嗙殑鍔熻兘錛岄偅涔堜負姣忎釜閰嶇疆欏圭洰澧炲姞涓涓瓧孌墊棦澶嶆潅涔熶笉鍒╀簬鎵╁睍錛屾墍浠ユ垜浠氬父浣跨敤涓涓瓧絎︿覆鏉ヤ繚瀛橀厤緗」鐩俊鎭紝榪欓噷浠嬬粛濡備綍浣跨敤json鐨勫瓧絎︿覆瑙f瀽鏉ヨ揪鍒板垰鎵嶈鐨勭洰鐨勩傚紩鍏son闇瑕佺殑綾誨簱錛?</p> <div id="wmqeeuq" 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="wmqeeuq" 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="wmqeeuq" 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="wmqeeuq" 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://www.aygfsteel.com/myqiao/aggbug/263844.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/myqiao/" target="_blank">宸︽錘</a> 2009-04-04 00:08 <a href="http://www.aygfsteel.com/myqiao/archive/2009/04/04/263844.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>娣卞叆嫻呭嚭JSON (杞澆鏀惰棌)http://www.aygfsteel.com/myqiao/archive/2009/04/03/263841.html宸︽錘宸︽錘Fri, 03 Apr 2009 15:54:00 GMThttp://www.aygfsteel.com/myqiao/archive/2009/04/03/263841.html闃呰鍏ㄦ枃

宸︽錘 2009-04-03 23:54 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 天门市| 岚皋县| 林周县| 眉山市| 大冶市| 南投市| 黔南| 泽州县| 青冈县| 怀仁县| 涞源县| 襄汾县| 澄江县| 徐闻县| 抚顺市| 专栏| 琼海市| 临海市| 商南县| 茌平县| 科技| 定远县| 南溪县| 肃北| 永春县| 麻城市| 新宾| 女性| 漠河县| 东海县| 平阳县| 湖州市| 九江县| 松溪县| 邳州市| 满洲里市| 辽中县| 宣化县| 腾冲县| 安仁县| 廊坊市|