基於Json.net的省市縣三級聯動WinForm製作
這是最近接到的一個小任務的前期準備工作,後面最終實現是在ArcGis的Arctoolbox中,即自定義一個GP工具(這個之後再寫)。簡單的來說就是要實現三個下拉框(在C#.net中就是combobox),第一個下拉框選擇省級單位,第二框根據第一個框的結果更新出市級單位,第三個框根據市級單位更新出縣級單位,最後實現的效果如下所示:
其實是一個非常常見的小程式,比如在淘寶買東西設定地址時用到就是和這個類似的。雖然最後的核心程式碼就那麼小几十行,但是對理解JSON作用很大,所以先寫下來,給以後要用JSON時作為一個回顧。
一、關於JSON
之前寫手機APP的伺服器時用過,實際上可以理解為一種跨語言的資料格式,以字串形式傳遞,是比XML更加輕量級的格式。當然用JSON最好的地方必然是Javascript,用在其他語言時往往需要一些類庫的支援來解析這種格式。一般的解析有兩種,一種是已知JSON格式的字串,怎麼方便從裡面取得想要的資訊;二是,已經有一些組織好的資訊,怎麼用JSON去包裝。下面的文章主要是解決第一個問題,但是實際上Json.net還有很多複雜特性包括怎麼與LINQ結合,或者怎麼直接轉化C#的物件等等,希望以後有時間可以學習,下面就對這次開發中涉及到的JSON的一些特性做備忘記錄。
1、JSON的基本格式
JSON 名稱/值對
JSON 資料的書寫格式是:名稱/值對。
名稱/值對包括欄位名稱(在雙引號中),後面寫一個冒號,然後是值:
"firstName" : "John"
這很容易理解,等價於這條 JavaScript 語句:
firstName = "John"
JSON 值
JSON 值可以是:
- 數字(整數或浮點數)
- 字串(在雙引號中)
- 邏輯值(true 或 false)
- 陣列(在方括號中)
- 物件(在花括號中)
- null
JSON 物件
JSON 物件在花括號中書寫:
物件可以包含多個名稱/值對:
{ "firstName":"John" , "lastName":"Doe" }
這一點也容易理解,與這條 JavaScript 語句等價:
firstName = "John" lastName = "Doe"
JSON 陣列
JSON 陣列在方括號中書寫:
陣列可包含多個物件:
{ "employees": [ { "firstName":"John" , "lastName":"Doe" }, { "firstName":"Anna" , "lastName":"Smith" }, { "firstName":"Peter" , "lastName":"Jones" } ] }
在上面的例子中,物件 "employees" 是包含三個物件的陣列。每個物件代表一條關於某人(有姓和名)的記錄。
2、C#.net環境下的JSON解析
這次主要使用了一個json.net的開源類庫,這個類庫功能比以前在Java裡用的那個要強大很多,但是遺憾的是,這次開發只用了很少數的幾個特性。使用時就是新增引用,但注意要選擇本機的.net的版本(隨便開啟一個資料夾,在位址列輸入 %systemroot%\Microsoft.NET\Framework,按下確定鍵,選擇最高的)。使用時注意,一些常用的,像JObject、JArray都在Newtonsoft.Json.Linq這個名稱空間下。主要功能及程式碼:
(1)解析JSON物件
</pre><pre name="code" class="csharp">JObject jo = JObject.Parse("JSON格式的字串");
(2)從JSON物件取值
string value = jo["key"].ToString();
(3)遍歷JSON物件的鍵、值(這個非常有用!)
foreach (KeyValuePair<string, JToken> keyValuePair in jo) {this.City.Items.Add(keyValuePair.Key); }//keyValuePair.Key可以取出鍵,keyValuePair.Value可以取出值
(4)解析JSON陣列
Newtonsoft.Json.Linq.JArray jarray = Newtonsoft.Json.Linq.JArray.Parse("JSON陣列格式字串");
(5)遍歷JSON陣列
for (int i = 0; i < jarray.Count; i++)
{
this.County.Items.Add(jarray[i].ToString());
}
二、專案程式碼
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
namespace SelectArea
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
string jsonText = "{\"北京市\":{\"市轄區\":[\"東城區\",\"西城區\",\"崇文區\",\"宣武區\",\"朝陽區\",\"豐臺區\",\"石景山區\",\"海淀區\",\"門頭溝區\",\"房山區\",\"通州區\",\"順義區\",\"昌平區\",\"大興區\",\"懷柔區\",\"平谷區\"],\"縣\":[\"密雲縣\",\"延慶縣\"]},\"天津市\":{\"市轄區\":[\"和平區\",\"河東區\",\"河西區\",\"南開區\",\"河北區\",\"紅橋區\",\"塘沽區\",\"漢沽區\",\"大港區\",\"東麗區\",\"西青區\",\"津南區\",\"北辰區\",\"武清區\",\"寶坻區\"],\"縣\":[\"寧河縣\",\"靜海縣\",\"薊縣\"]},\"河北省\":{\"石家莊市\":[\"長安區\",\"橋東區\",\"橋西區\",\"新華區\",\"井陘礦區\",\"裕華區\",\"井陘縣\",\"正定縣\",\"欒城縣\",\"行唐縣\",\"靈壽縣\",\"高邑縣\",\"深澤縣\",\"贊皇縣\",\"無極縣\",\"平山縣\",\"元氏縣\",\"趙縣\",\"辛集市\",\"藁城市\",\"晉州市\",\"新樂市\",\"鹿泉市\"],\"唐山市\":[\"路南區\",\"路北區\",\"古冶區\",\"開平區\",\"豐南區\",\"豐潤區\",\"灤縣\",\"灤南縣\",\"樂亭縣\",\"遷西縣\",\"玉田縣\",\"唐海縣\",\"遵化市\",\"遷安市\"],\"秦皇島市\":[\"海港區\",\"山海關區\",\"北戴河區\",\"青龍滿族自治縣\",\"昌黎縣\",\"撫寧縣\",\"盧龍縣\"],\"邯鄲市\":[\"邯山區\",\"叢臺區\",\"復興區\",\"峰峰礦區\",\"邯鄲縣\",\"臨漳縣\",\"成安縣\",\"大名縣\",\"涉縣\",\"磁縣\",\"肥鄉縣\",\"永年縣\",\"邱縣\",\"雞澤縣\",\"廣平縣\",\"館陶縣\",\"魏縣\",\"曲周縣\",\"武安市\"],\"邢臺市\":[\"橋東區\",\"橋西區\",\"邢臺縣\",\"臨城縣\",\"內丘縣\",\"柏鄉縣\",\"隆堯縣\",\"任縣\",\"南和縣\",\"寧晉縣\",\"鉅鹿縣\",\"新河縣\",\"廣宗縣\",\"平鄉縣\",\"威縣\",\"清河縣\",\"臨西縣\",\"南宮市\",\"沙河市\"],\"保定市\":[\"新市區\",\"北市區\",\"南市區\",\"滿城縣\",\"清苑縣\",\"淶水縣\",\"阜平縣\",\"徐水縣\",\"定興縣\",\"唐縣\",\"高陽縣\",\"容城縣\",\"淶源縣\",\"望都縣\",\"安新縣\",\"易縣\",\"曲陽縣\",\"蠡縣\",\"順平縣\",\"博野縣\",\"雄縣\",\"涿州市\",\"定州市\",\"安國市\",\"高碑店市\"],\"張家口市\":[\"橋東區\",\"橋西區\",\"宣化區\",\"下花園區\",\"宣化縣\",\"張北縣\",\"康保縣\",\"沽源縣\",\"尚義縣\",\"蔚縣\",\"陽原縣\",\"懷安縣\",\"萬全縣\",\"懷來縣\",\"涿鹿縣\",\"赤城縣\",\"崇禮縣\"],\"承德市\":[\"雙橋區\",\"雙灤區\",\"鷹手營子礦區\",\"承德縣\",\"興隆縣\",\"平泉縣\",\"灤平縣\",\"隆化縣\",\"豐寧滿族自治縣\",\"寬城滿族自治縣\",\"圍場滿族蒙古族自治縣\"],\"滄州市\":[\"新華區\",\"運河區\",\"滄縣\",\"青縣\",\"東光縣\",\"海興縣\",\"鹽山縣\",\"肅寧縣\",\"南皮縣\",\"吳橋縣\",\"獻縣\",\"孟村回族自治縣\",\"泊頭市\",\"任丘市\",\"黃驊市\",\"河間市\"],\"廊坊市\":[\"安次區\",\"廣陽區\",\"固安縣\",\"永清縣\",\"香河縣\",\"大城縣\",\"文安縣\",\"大廠回族自治縣\",\"霸州市\",\"三河市\"],\"衡水市\":[\"桃城區\",\"棗強縣\",\"武邑縣\",\"武強縣\",\"饒陽縣\",\"安平縣\",\"故城縣\",\"景縣\",\"阜城縣\",\"冀州市\",\"深州市\"]},\"山西省\":{\"太原市\":[\"小店區\",\"迎澤區\",\"杏花嶺區\",\"尖草坪區\",\"萬柏林區\",\"晉源區\",\"清徐縣\",\"陽曲縣\",\"婁煩縣\",\"古交市\"],\"大同市\":[\"城區\",\"礦區\",\"南郊區\",\"新榮區\",\"陽高縣\",\"天鎮縣\",\"廣靈縣\",\"靈丘縣\",\"渾源縣\",\"左雲縣\",\"大同縣\"],\"陽泉市\":[\"城區\",\"礦區\",\"郊區\",\"平定縣\",\"盂縣\"],\"長治市\":[\"城區\",\"郊區\",\"長治縣\",\"襄垣縣\",\"屯留縣\",\"平順縣\",\"黎城縣\",\"壺關縣\",\"長子縣\",\"武鄉縣\",\"沁縣\",\"沁源縣\",\"潞城市\"],\"晉城市\":[\"城區\",\"沁水縣\",\"陽城縣\",\"陵川縣\",\"澤州縣\",\"高平市\"],\"朔州市\":[\"朔城區\",\"平魯區\",\"山陰縣\",\"應縣\",\"右玉縣\",\"懷仁縣\"],\"晉中市\":[\"榆次區\",\"榆社縣\",\"左權縣\",\"和順縣\",\"昔陽縣\",\"壽陽縣\",\"太谷縣\",\"祁縣\",\"平遙縣\",\"靈石縣\",\"介休市\"],\"運城市\":[\"鹽湖區\",\"臨猗縣\",\"萬榮縣\",\"聞喜縣\",\"稷山縣\",\"新絳縣\",\"絳縣\",\"垣曲縣\",\"夏縣\",\"平陸縣\",\"芮城縣\",\"永濟市\",\"河津市\"],\"忻州市\":[\"忻府區\",\"定襄縣\",\"五臺縣\",\"代縣\",\"繁峙縣\",\"寧武縣\",\"靜樂縣\",\"神池縣\",\"五寨縣\",\"岢嵐縣\",\"河曲縣\",\"保德縣\",\"偏關縣\",\"原平市\"],\"臨汾市\":[\"堯都區\",\"曲沃縣\",\"翼城縣\",\"襄汾縣\",\"洪洞縣\",\"古縣\",\"安澤縣\",\"浮山縣\",\"吉縣\",\"鄉寧縣\",\"大寧縣\",\"隰縣\",\"永和縣\",\"蒲縣\",\"汾西縣\",\"侯馬市\",\"霍州市\"],\"呂梁市\":[\"離石區\",\"文水縣\",\"交城縣\",\"興縣\",\"臨縣\",\"柳林縣\",\"石樓縣\",\"嵐縣\",\"方山縣\",\"中陽縣\",\"交口縣\",\"孝義市\",\"汾陽市\"]},\"內蒙古自治區\":{\"呼和浩特市\":[\"新城區\",\"回民區\",\"玉泉區\",\"賽罕區\",\"土默特左旗\",\"托克托縣\",\"和林格爾縣\",\"清水河縣\",\"武川縣\"],\"包頭市\":[\"東河區\",\"昆都侖區\",\"青山區\",\"石柺區\",\"白雲礦區\",\"九原區\",\"土默特右旗\",\"固陽縣\",\"達爾罕茂明安聯合旗\"],\"烏海市\":[\"海勃灣區\",\"海南區\",\"烏達區\"],\"赤峰市\":[\"紅山區\",\"元寶山區\",\"松山區\",\"阿魯科爾沁旗\",\"巴林左旗\",\"巴林右旗\",\"林西縣\",\"克什克騰旗\",\"翁牛特旗\",\"喀喇沁旗\",\"寧城縣\",\"敖漢旗\"],\"通遼市\":[\"科爾沁區\",\"科爾沁左翼中旗\",\"科爾沁左翼後旗\",\"開魯縣\",\"庫倫旗\",\"奈曼旗\",\"扎魯特旗\",\"霍林郭勒市\"],\"鄂爾多斯市\":[\"東勝區\",\"達拉特旗\",\"準格爾旗\",\"鄂托克前旗\",\"鄂托克旗\",\"杭錦旗\",\"烏審旗\",\"伊金霍洛旗\"],\"呼倫貝爾市\":[\"海拉爾區\",\"阿榮旗\",\"莫力達瓦達斡爾族自治旗\",\"鄂倫春自治旗\",\"鄂溫克族自治旗\",\"陳巴爾虎旗\",\"新巴爾虎左旗\",\"新巴爾虎右旗\",\"滿洲裡市\",\"牙克石市\",\"扎蘭屯市\",\"額爾古納市\",\"根河市\"],\"巴彥淖爾市\":[\"臨河區\",\"五原縣\",\"磴口縣\",\"烏拉特前旗\",\"烏拉特中旗\",\"烏拉特後旗\",\"杭錦後旗\"],\"烏蘭察布市\":[\"集寧區\",\"卓資縣\",\"化德縣\",\"商都縣\",\"興和縣\",\"涼城縣\",\"察哈爾右翼前旗\",\"察哈爾右翼中旗\",\"察哈爾右翼後旗\",\"四子王旗\",\"豐鎮市\"],\"興安盟\":[\"烏蘭浩特市\",\"阿爾山市\",\"科爾沁右翼前旗\",\"科爾沁右翼中旗\",\"扎賚特旗\",\"突泉縣\"],\"錫林郭勒盟\":[\"二連浩特市\",\"錫林浩特市\",\"阿巴嘎旗\",\"蘇尼特左旗\",\"蘇尼特右旗\",\"東烏珠穆沁旗\",\"西烏珠穆沁旗\",\"太僕寺旗\",\"鑲黃旗\",\"正鑲白旗\",\"正藍旗\",\"多倫縣\"],\"阿拉善盟\":[\"阿拉善左旗\",\"阿拉善右旗\",\"額濟納旗\"]},\"遼寧省\":{\"瀋陽市\":[\"和平區\",\"瀋河區\",\"大東區\",\"皇姑區\",\"鐵西區\",\"甦家屯區\",\"東陵區\",\"新城子區\",\"于洪區\",\"遼中縣\",\"康平縣\",\"法庫縣\",\"新民市\"],\"大連市\":[\"中山區\",\"西崗區\",\"沙河口區\",\"甘井子區\",\"旅順口區\",\"金州區\",\"長海縣\",\"瓦房店市\",\"普蘭店市\",\"莊河市\"],\"鞍山市\":[\"鐵東區\",\"鐵西區\",\"立山區\",\"千山區\",\"檯安縣\",\"岫巖滿族自治縣\",\"海城市\"],\"撫順市\":[\"新撫區\",\"東洲區\",\"望花區\",\"順城區\",\"撫順縣\",\"新賓滿族自治縣\",\"清原滿族自治縣\"],\"本溪市\":[\"平山區\",\"溪湖區\",\"明山區\",\"南芬區\",\"本溪滿族自治縣\",\"桓仁滿族自治縣\"],\"丹東市\":[\"元寶區\",\"振興區\",\"振安區\",\"寬甸滿族自治縣\",\"東港市\",\"鳳城市\"],\"錦州市\":[\"古塔區\",\"淩河區\",\"太和區\",\"黑山縣\",\"義縣\",\"凌海市\",\"北寧市\"],\"營口市\":[\"站前區\",\"西市區\",\"鮁魚圈區\",\"老邊區\",\"蓋州市\",\"大石橋市\"],\"阜新市\":[\"海州區\",\"新邱區\",\"太平區\",\"清河門區\",\"細河區\",\"阜新蒙古族自治縣\",\"彰武縣\"],\"遼陽市\":[\"白塔區\",\"文聖區\",\"巨集偉區\",\"弓長嶺區\",\"太子河區\",\"遼陽縣\",\"燈塔市\"],\"盤錦市\":[\"雙臺子區\",\"興隆臺區\",\"大窪縣\",\"盤山縣\"],\"鐵嶺市\":[\"銀州區\",\"清河區\",\"鐵嶺縣\",\"西豐縣\",\"昌圖縣\",\"調兵山市\",\"開原市\"],\"朝陽市\":[\"雙塔區\",\"龍城區\",\"朝陽縣\",\"建平縣\",\"喀喇沁左翼蒙古族自治縣\",\"北票市\",\"凌源市\"],\"葫蘆島市\":[\"連山區\",\"龍港區\",\"南票區\",\"綏中縣\",\"建昌縣\",\"興城市\"]},\"吉林省\":{\"長春市\":[\"南關區\",\"寬城區\",\"朝陽區\",\"二道區\",\"綠園區\",\"雙陽區\",\"農安縣\",\"九臺市\",\"榆樹市\",\"德惠市\"],\"吉林市\":[\"昌邑區\",\"龍潭區\",\"船營區\",\"豐滿區\",\"永吉縣\",\"蛟河市\",\"樺甸市\",\"舒蘭市\",\"磐石市\"],\"四平市\":[\"鐵西區\",\"鐵東區\",\"梨樹縣\",\"伊通滿族自治縣\",\"公主嶺市\",\"雙遼市\"],\"遼源市\":[\"龍山區\",\"西安區\",\"東豐縣\",\"東遼縣\"],\"通化市\":[\"東昌區\",\"二道江區\",\"通化縣\",\"輝南縣\",\"柳河縣\",\"梅河口市\",\"集安市\"],\"白山市\":[\"八道江區\",\"撫松縣\",\"靖宇縣\",\"長白朝鮮族自治縣\",\"江源縣\",\"臨江市\"],\"松原市\":[\"寧江區\",\"前郭爾羅斯蒙古族自治縣\",\"長嶺縣\",\"乾安縣\",\"扶余縣\"],\"白城市\":[\"洮北區\",\"鎮賚縣\",\"通榆縣\",\"洮南市\",\"大安市\"],\"延邊朝鮮族自治州\":[\"延吉市\",\"圖們市\",\"敦化市\",\"琿春市\",\"龍井市\",\"和龍市\",\"汪清縣\",\"安圖縣\"]},\"黑龍江省\":{\"哈爾濱市\":[\"道里區\",\"南崗區\",\"道外區\",\"香坊區\",\"動力區\",\"平房區\",\"松北區\",\"呼蘭區\",\"依蘭縣\",\"方正縣\",\"賓縣\",\"巴彥縣\",\"木蘭縣\",\"通河縣\",\"延壽縣\",\"阿城市\",\"雙城市\",\"尚志市\",\"五常市\"],\"齊齊哈爾市\":[\"龍沙區\",\"建華區\",\"鐵鋒區\",\"昂昂溪區\",\"富拉爾基區\",\"碾子山區\",\"梅里斯達斡爾族區\",\"龍江縣\",\"依安縣\",\"泰來縣\",\"甘南縣\",\"富裕縣\",\"克山縣\",\"克東縣\",\"拜泉縣\",\"訥河市\"],\"雞西市\":[\"雞冠區\",\"恆山區\",\"滴道區\",\"梨樹區\",\"城子河區\",\"麻山區\",\"雞東縣\",\"虎林市\",\"密山市\"],\"鶴崗市\":[\"向陽區\",\"工農區\",\"南山區\",\"興安區\",\"東山區\",\"興山區\",\"蘿北縣\",\"綏濱縣\"],\"雙鴨山市\":[\"尖山區\",\"嶺東區\",\"四方臺區\",\"寶山區\",\"集賢縣\",\"友誼縣\",\"寶清縣\",\"饒河縣\"],\"大慶市\":[\"薩爾圖區\",\"龍鳳區\",\"讓胡路區\",\"紅崗區\",\"大同區\",\"肇州縣\",\"肇源縣\",\"林甸縣\",\"杜爾伯特蒙古族自治縣\"],\"伊春市\":[\"伊春區\",\"南岔區\",\"友好區\",\"西林區\",\"翠巒區\",\"新青區\",\"美溪區\",\"金山屯區\",\"五營區\",\"烏馬河區\",\"湯旺河區\",\"帶嶺區\",\"烏伊嶺區\",\"紅星區\",\"上甘嶺區\",\"嘉蔭縣\",\"鐵力市\"],\"佳木斯市\":[\"永紅區\",\"向陽區\",\"前進區\",\"東風區\",\"郊區\",\"樺南縣\",\"樺川縣\",\"湯原縣\",\"撫遠縣\",\"同江市\",\"富錦市\"],\"七臺河市\":[\"新興區\",\"桃山區\",\"茄子河區\",\"勃利縣\"],\"牡丹江市\":[\"東安區\",\"陽明區\",\"愛民區\",\"西安區\",\"東寧縣\",\"林口縣\",\"綏芬河市\",\"海林市\",\"寧安市\",\"穆稜市\"],\"黑河市\":[\"愛輝區\",\"嫩江縣\",\"遜克縣\",\"孫吳縣\",\"北安市\",\"五大連池市\"],\"綏化市\":[\"北林區\",\"望奎縣\",\"蘭西縣\",\"青岡縣\",\"慶安縣\",\"明水縣\",\"綏稜縣\",\"安達市\",\"肇東市\",\"海倫市\"],\"大興安嶺地區\":[\"呼瑪縣\",\"塔河縣\",\"漠河縣\"]},\"上海市\":{\"市轄區\":[\"黃浦區\",\"盧灣區\",\"徐彙區\",\"長寧區\",\"靜安區\",\"普陀區\",\"閘北區\",\"虹口區\",\"楊浦區\",\"閔行區\",\"寶山區\",\"嘉定區\",\"浦東新區\",\"金山區\",\"松江區\",\"青浦區\",\"南匯區\",\"奉賢區\"],\"縣\":[\"崇明縣\"]},\"江蘇省\":{\"南京市\":[\"玄武區\",\"白下區\",\"秦淮區\",\"建鄴區\",\"鼓樓區\",\"下關區\",\"浦口區\",\"棲霞區\",\"雨花臺區\",\"江寧區\",\"六合區\",\"溧水縣\",\"高淳縣\"],\"無錫市\":[\"崇安區\",\"南長區\",\"北塘區\",\"錫山區\",\"惠山區\",\"濱湖區\",\"江陰市\",\"宜興市\"],\"徐州市\":[\"鼓樓區\",\"雲龍區\",\"九里區\",\"賈汪區\",\"泉山區\",\"豐縣\",\"沛縣\",\"銅山縣\",\"睢寧縣\",\"新沂市\",\"邳州市\"],\"常州市\":[\"天寧區\",\"鐘樓區\",\"慼墅堰區\",\"新北區\",\"武進區\",\"溧陽市\",\"金壇市\"],\"蘇州市\":[\"滄浪區\",\"平江區\",\"金閶區\",\"虎丘區\",\"吳中區\",\"相城區\",\"常熟市\",\"張家港市\",\"崑山市\",\"吳江市\",\"太倉市\"],\"南通市\":[\"崇川區\",\"港閘區\",\"海安縣\",\"如東縣\",\"啟東市\",\"如皋市\",\"通州市\",\"海門市\"],\"連雲港市\":[\"連雲區\",\"新浦區\",\"海州區\",\"贛榆縣\",\"東海縣\",\"灌雲縣\",\"灌南縣\"],\"淮安市\":[\"清河區\",\"楚州區\",\"淮陰區\",\"清浦區\",\"漣水縣\",\"洪澤縣\",\"盱眙縣\",\"金湖縣\"],\"鹽城市\":[\"亭湖區\",\"鹽都區\",\"響水縣\",\"濱海縣\",\"阜寧縣\",\"射陽縣\",\"建湖縣\",\"東臺市\",\"大豐市\"],\"揚州市\":[\"廣陵區\",\"邗江區\",\"郊區\",\"寶應縣\",\"儀徵市\",\"高郵市\",\"江都市\"],\"鎮江市\":[\"京口區\",\"潤州區\",\"丹徒區\",\"丹陽市\",\"揚中市\",\"句容市\"],\"泰州市\":[\"海陵區\",\"高港區\",\"興化市\",\"靖江市\",\"泰興市\",\"姜堰市\"],\"宿遷市\":[\"宿城區\",\"宿豫區\",\"沭陽縣\",\"泗陽縣\",\"泗洪縣\"]},\"浙江省\":{\"杭州市\":[\"上城區\",\"下城區\",\"江乾區\",\"拱墅區\",\"西湖區\",\"濱江區\",\"蕭山區\",\"餘杭區\",\"桐廬縣\",\"淳安縣\",\"建德市\",\"富陽市\",\"臨安市\"],\"寧波市\":[\"海曙區\",\"江東區\",\"江北區\",\"北侖區\",\"鎮海區\",\"鄞州區\",\"象山縣\",\"寧海縣\",\"餘姚市\",\"慈溪市\",\"奉化市\"],\"溫州市\":[\"鹿城區\",\"龍灣區\",\"甌海區\",\"洞頭縣\",\"永嘉縣\",\"平陽縣\",\"蒼南縣\",\"文成縣\",\"泰順縣\",\"瑞安市\",\"樂清市\"],\"嘉興市\":[\"秀城區\",\"秀洲區\",\"嘉善縣\",\"海鹽縣\",\"海寧市\",\"平湖市\",\"桐鄉市\"],\"湖州市\":[\"吳興區\",\"南潯區\",\"德清縣\",\"長興縣\",\"安吉縣\"],\"紹興市\":[\"越城區\",\"紹興縣\",\"新昌縣\",\"諸暨市\",\"上虞市\",\"嵊州市\"],\"金華市\":[\"婺城區\",\"金東區\",\"武義縣\",\"浦江縣\",\"磐安縣\",\"蘭溪市\",\"義烏市\",\"東陽市\",\"永康市\"],\"衢州市\":[\"柯城區\",\"衢江區\",\"常山縣\",\"開化縣\",\"龍遊縣\",\"江山市\"],\"舟山市\":[\"定海區\",\"普陀區\",\"岱山縣\",\"嵊泗縣\"],\"台州市\":[\"椒江區\",\"黃巖區\",\"路橋區\",\"玉環縣\",\"三門縣\",\"天台縣\",\"仙居縣\",\"溫嶺市\",\"臨海市\"],\"麗水市\":[\"蓮都區\",\"青田縣\",\"縉雲縣\",\"遂昌縣\",\"松陽縣\",\"雲和縣\",\"慶元縣\",\"景寧畲族自治縣\",\"龍泉市\"]},\"安徽省\":{\"合肥市\":[\"瑤海區\",\"廬陽區\",\"蜀山區\",\"包河區\",\"長豐縣\",\"肥東縣\",\"肥西縣\"],\"蕪湖市\":[\"鏡湖區\",\"馬塘區\",\"新蕪區\",\"鳩江區\",\"蕪湖縣\",\"繁昌縣\",\"南陵縣\"],\"蚌埠市\":[\"龍子湖區\",\"蚌山區\",\"禹會區\",\"淮上區\",\"懷遠縣\",\"五河縣\",\"固鎮縣\"],\"淮南市\":[\"大通區\",\"田家庵區\",\"謝家集區\",\"八公山區\",\"潘集區\",\"鳳臺縣\"],\"馬鞍山市\":[\"金家莊區\",\"花山區\",\"雨山區\",\"當塗縣\"],\"淮北市\":[\"杜集區\",\"相山區\",\"烈山區\",\"濉溪縣\"],\"銅陵市\":[\"銅官山區\",\"獅子山區\",\"郊區\",\"銅陵縣\"],\"安慶市\":[\"迎江區\",\"大觀區\",\"郊區\",\"懷寧縣\",\"樅陽縣\",\"潛山縣\",\"太湖縣\",\"宿松縣\",\"望江縣\",\"嶽西縣\",\"桐城市\"],\"黃山市\":[\"屯溪區\",\"黃山區\",\"徽州區\",\"歙縣\",\"休寧縣\",\"黟縣\",\"祁門縣\"],\"滁州市\":[\"琅琊區\",\"南譙區\",\"來安縣\",\"全椒縣\",\"定遠縣\",\"鳳陽縣\",\"天長市\",\"明光市\"],\"阜陽市\":[\"潁州區\",\"潁東區\",\"潁泉區\",\"臨泉縣\",\"太和縣\",\"阜南縣\",\"潁上縣\",\"界首市\"],\"宿州市\":[\"墉橋區\",\"碭山縣\",\"蕭縣\",\"靈璧縣\",\"泗縣\"],\"巢湖市\":[\"居巢區\",\"廬江縣\",\"無為縣\",\"含山縣\",\"和縣\"],\"六安市\":[\"金安區\",\"裕安區\",\"壽縣\",\"霍邱縣\",\"舒城縣\",\"金寨縣\",\"霍山縣\"],\"亳州市\":[\"譙城區\",\"渦陽縣\",\"蒙城縣\",\"利辛縣\"],\"池州市\":[\"貴池區\",\"東至縣\",\"石臺縣\",\"青陽縣\"],\"宣城市\":[\"宣州區\",\"郎溪縣\",\"廣德縣\",\"涇縣\",\"績溪縣\",\"旌德縣\",\"寧國市\"]},\"福建省\":{\"福州市\":[\"鼓樓區\",\"臺江區\",\"倉山區\",\"馬尾區\",\"晉安區\",\"閩侯縣\",\"連江縣\",\"羅源縣\",\"閩清縣\",\"永泰縣\",\"平潭縣\",\"福清市\",\"長樂市\"],\"廈門市\":[\"思明區\",\"海滄區\",\"湖裡區\",\"集美區\",\"同安區\",\"翔安區\"],\"莆田市\":[\"城廂區\",\"涵江區\",\"荔城區\",\"秀嶼區\",\"仙遊縣\"],\"三明市\":[\"梅列區\",\"三元區\",\"明溪縣\",\"清流縣\",\"寧化縣\",\"大田縣\",\"尤溪縣\",\"沙縣\",\"將樂縣\",\"泰寧縣\",\"建寧縣\",\"永安市\"],\"泉州市\":[\"鯉城區\",\"豐澤區\",\"洛江區\",\"泉港區\",\"惠安縣\",\"安溪縣\",\"永春縣\",\"德化縣\",\"金門縣\",\"石獅市\",\"晉江市\",\"南安市\"],\"漳州市\":[\"薌城區\",\"龍文區\",\"雲霄縣\",\"漳浦縣\",\"詔安縣\",\"長泰縣\",\"東山縣\",\"南靖縣\",\"平和縣\",\"華安縣\",\"龍海市\"],\"南平市\":[\"延平區\",\"順昌縣\",\"浦城縣\",\"光澤縣\",\"松溪縣\",\"政和縣\",\"邵武市\",\"武夷山市\",\"建甌市\",\"建陽市\"],\"龍巖市\":[\"新羅區\",\"長汀縣\",\"永定縣\",\"上杭縣\",\"武平縣\",\"連城縣\",\"漳平市\"],\"寧德市\":[\"蕉城區\",\"霞浦縣\",\"古田縣\",\"屏南縣\",\"壽寧縣\",\"周寧縣\",\"柘榮縣\",\"福安市\",\"福鼎市\"]},\"江西省\":{\"南昌市\":[\"東湖區\",\"西湖區\",\"青雲譜區\",\"灣裡區\",\"青山湖區\",\"南昌縣\",\"新建縣\",\"安義縣\",\"進賢縣\"],\"景德鎮市\":[\"昌江區\",\"珠山區\",\"浮樑縣\",\"樂平市\"],\"萍鄉市\":[\"安源區\",\"湘東區\",\"蓮花縣\",\"上栗縣\",\"蘆溪縣\"],\"九江市\":[\"廬山區\",\"潯陽區\",\"九江縣\",\"武寧縣\",\"修水縣\",\"永修縣\",\"德安縣\",\"星子縣\",\"都昌縣\",\"湖口縣\",\"彭澤縣\",\"瑞昌市\"],\"新餘市\":[\"渝水區\",\"分宜縣\"],\"鷹潭市\":[\"月湖區\",\"餘江縣\",\"貴溪市\"],\"贛州市\":[\"章貢區\",\"贛縣\",\"信豐縣\",\"大餘縣\",\"上猶縣\",\"崇義縣\",\"安遠縣\",\"龍南縣\",\"定南縣\",\"全南縣\",\"寧都縣\",\"於都縣\",\"興國縣\",\"會昌縣\",\"尋烏縣\",\"石城縣\",\"瑞金市\",\"南康市\"],\"吉安市\":[\"吉州區\",\"青原區\",\"吉安縣\",\"吉水縣\",\"峽江縣\",\"新干縣\",\"永豐縣\",\"泰和縣\",\"遂川縣\",\"萬安縣\",\"安福縣\",\"永新縣\",\"井岡山市\"],\"宜春市\":[\"袁州區\",\"奉新縣\",\"萬載縣\",\"上高縣\",\"宜豐縣\",\"靖安縣\",\"銅鼓縣\",\"豐城市\",\"樟樹市\",\"高安市\"],\"撫州市\":[\"臨川區\",\"南城縣\",\"黎川縣\",\"南豐縣\",\"崇仁縣\",\"樂安縣\",\"宜黃縣\",\"金溪縣\",\"資溪縣\",\"東鄉縣\",\"廣昌縣\"],\"上饒市\":[\"信州區\",\"上饒縣\",\"廣豐縣\",\"玉山縣\",\"鉛山縣\",\"橫峰縣\",\"弋陽縣\",\"餘干縣\",\"鄱陽縣\",\"萬年縣\",\"婺源縣\",\"德興市\"]},\"山東省\":{\"濟南市\":[\"歷下區\",\"市中區\",\"槐蔭區\",\"天橋區\",\"歷城區\",\"長清區\",\"平陰縣\",\"濟陽縣\",\"商河縣\",\"章丘市\"],\"青島市\":[\"市南區\",\"市北區\",\"四方區\",\"黃島區\",\"嶗山區\",\"李滄區\",\"城陽區\",\"膠州市\",\"即墨市\",\"平度市\",\"膠南市\",\"萊西市\"],\"淄博市\":[\"淄川區\",\"張店區\",\"博山區\",\"臨淄區\",\"周村區\",\"桓臺縣\",\"高青縣\",\"沂源縣\"],\"棗莊市\":[\"市中區\",\"薛城區\",\"嶧城區\",\"臺兒莊區\",\"山亭區\",\"滕州市\"],\"東營市\":[\"東營區\",\"河口區\",\"墾利縣\",\"利津縣\",\"廣饒縣\"],\"煙臺市\":[\"芝罘區\",\"福山區\",\"牟平區\",\"萊山區\",\"長島縣\",\"龍口市\",\"萊陽市\",\"萊州市\",\"蓬萊市\",\"招遠市\",\"棲霞市\",\"海陽市\"],\"濰坊市\":[\"濰城區\",\"寒亭區\",\"坊子區\",\"奎文區\",\"臨朐縣\",\"昌樂縣\",\"青州市\",\"諸城市\",\"壽光市\",\"安丘市\",\"高密市\",\"昌邑市\"],\"濟寧市\":[\"市中區\",\"任城區\",\"微山縣\",\"魚臺縣\",\"金鄉縣\",\"嘉祥縣\",\"汶上縣\",\"泗水縣\",\"梁山縣\",\"曲阜市\",\"兗州市\",\"鄒城市\"],\"泰安市\":[\"泰山區\",\"岱嶽區\",\"寧陽縣\",\"東平縣\",\"新泰市\",\"肥城市\"],\"威海市\":[\"環翠區\",\"文登市\",\"榮成市\",\"乳山市\"],\"日照市\":[\"東港區\",\"嵐山區\",\"五蓮縣\",\"莒縣\"],\"萊蕪市\":[\"萊城區\",\"鋼城區\"],\"臨沂市\":[\"蘭山區\",\"羅莊區\",\"河東區\",\"沂南縣\",\"郯城縣\",\"沂水縣\",\"蒼山縣\",\"費縣\",\"平邑縣\",\"莒南縣\",\"蒙陰縣\",\"臨沭縣\"],\"德州市\":[\"德城區\",\"陵縣\",\"寧津縣\",\"慶雲縣\",\"臨邑縣\",\"齊河縣\",\"平原縣\",\"夏津縣\",\"武城縣\",\"樂陵市\",\"禹城市\"],\"聊城市\":[\"東昌府區\",\"陽谷縣\",\"莘縣\",\"茌平縣\",\"東阿縣\",\"冠縣\",\"高唐縣\",\"臨清市\"],\"濱州市\":[\"濱城區\",\"惠民縣\",\"陽信縣\",\"無棣縣\",\"沾化縣\",\"博興縣\",\"鄒平縣\"],\"荷澤市\":[\"牡丹區\",\"曹縣\",\"單縣\",\"成武縣\",\"鉅野縣\",\"鄆城縣\",\"鄄城縣\",\"定陶縣\",\"東明縣\"]},\"河南省\":{\"鄭州市\":[\"中原區\",\"二七區\",\"管城回族區\",\"金水區\",\"上街區\",\"邙山區\",\"中牟縣\",\"鞏義市\",\"滎陽市\",\"新密市\",\"新鄭市\",\"登封市\"],\"開封市\":[\"龍亭區\",\"順河回族區\",\"鼓樓區\",\"南關區\",\"郊區\",\"杞縣\",\"通許縣\",\"尉氏縣\",\"開封縣\",\"蘭考縣\"],\"洛陽市\":[\"老城區\",\"西工區\",\"廛河回族區\",\"澗西區\",\"吉利區\",\"洛龍區\",\"孟津縣\",\"新安縣\",\"欒川縣\",\"嵩縣\",\"汝陽縣\",\"宜陽縣\",\"洛寧縣\",\"伊川縣\",\"偃師市\"],\"平頂山市\":[\"新華區\",\"衛東區\",\"石龍區\",\"湛河區\",\"寶豐縣\",\"葉縣\",\"魯山縣\",\"郟縣\",\"舞鋼市\",\"汝州市\"],\"安陽市\":[\"文峰區\",\"北關區\",\"殷都區\",\"龍安區\",\"安陽縣\",\"湯陰縣\",\"滑縣\",\"內黃縣\",\"林州市\"],\"鶴壁市\":[\"鶴山區\",\"山城區\",\"淇濱區\",\"浚縣\",\"淇縣\"],\"新鄉市\":[\"紅旗區\",\"衛濱區\",\"鳳泉區\",\"牧野區\",\"新鄉縣\",\"獲嘉縣\",\"原陽縣\",\"延津縣\",\"封丘縣\",\"長垣縣\",\"衛輝市\",\"輝縣市\"],\"焦作市\":[\"解放區\",\"中站區\",\"馬村區\",\"山陽區\",\"修武縣\",\"博愛縣\",\"武陟縣\",\"溫縣\",\"濟源市\",\"沁陽市\",\"孟州市\"],\"濮陽市\":[\"華龍區\",\"清豐縣\",\"南樂縣\",\"範縣\",\"臺前縣\",\"濮陽縣\"],\"許昌市\":[\"魏都區\",\"許昌縣\",\"鄢陵縣\",\"襄城縣\",\"禹州市\",\"長葛市\"],\"漯河市\":[\"源匯區\",\"郾城區\",\"召陵區\",\"舞陽縣\",\"臨潁縣\"],\"三門峽市\":[\"湖濱區\",\"澠池縣\",\"陝縣\",\"盧氏縣\",\"義馬市\",\"靈寶市\"],\"南陽市\":[\"宛城區\",\"臥龍區\",\"南召縣\",\"方城縣\",\"西峽縣\",\"鎮平縣\",\"內鄉縣\",\"淅川縣\",\"社旗縣\",\"唐河縣\",\"新野縣\",\"桐柏縣\",\"鄧州市\"],\"商丘市\":[\"梁園區\",\"睢陽區\",\"民權縣\",\"睢縣\",\"寧陵縣\",\"柘城縣\",\"虞城縣\",\"夏邑縣\",\"永城市\"],\"信陽市\":[\"師河區\",\"平橋區\",\"羅山縣\",\"光山縣\",\"新縣\",\"商城縣\",\"固始縣\",\"潢川縣\",\"淮濱縣\",\"息縣\"],\"周口市\":[\"川匯區\",\"扶溝縣\",\"西華縣\",\"商水縣\",\"沈丘縣\",\"鄲城縣\",\"淮陽縣\",\"太康縣\",\"鹿邑縣\",\"項城市\"],\"駐馬店市\":[\"驛城區\",\"西平縣\",\"上蔡縣\",\"平輿縣\",\"正陽縣\",\"確山縣\",\"泌陽縣\",\"汝南縣\",\"遂平縣\",\"新蔡縣\"]},\"湖北省\":{\"武漢市\":[\"江岸區\",\"江漢區\",\"喬口區\",\"漢陽區\",\"武昌區\",\"青山區\",\"洪山區\",\"東西湖區\",\"漢南區\",\"蔡甸區\",\"江夏區\",\"黃陂區\",\"新洲區\"],\"黃石市\":[\"黃石港區\",\"西塞山區\",\"下陸區\",\"鐵山區\",\"陽新縣\",\"大冶市\"],\"十堰市\":[\"茅箭區\",\"張灣區\",\"鄖縣\",\"鄖西縣\",\"竹山縣\",\"竹溪縣\",\"房縣\",\"丹江口市\"],\"宜昌市\":[\"西陵區\",\"伍家崗區\",\"點軍區\",\"?亭區\",\"夷陵區\",\"遠安縣\",\"興山縣\",\"秭歸縣\",\"長陽土家族自治縣\",\"五峰土家族自治縣\",\"宜都市\",\"當陽市\",\"枝江市\"],\"襄樊市\":[\"襄城區\",\"樊城區\",\"襄陽區\",\"南漳縣\",\"谷城縣\",\"保康縣\",\"老河口市\",\"棗陽市\",\"宜城市\"],\"鄂州市\":[\"梁子湖區\",\"華容區\",\"鄂城區\"],\"荊門市\":[\"東寶區\",\"掇刀區\",\"京山縣\",\"沙洋縣\",\"鍾祥市\"],\"孝感市\":[\"孝南區\",\"孝昌縣\",\"大悟縣\",\"雲夢縣\",\"應城市\",\"安陸市\",\"漢川市\"],\"荊州市\":[\"沙市區\",\"荊州區\",\"公安縣\",\"監利縣\",\"江陵縣\",\"石首市\",\"洪湖市\",\"鬆滋市\"],\"黃岡市\":[\"黃州區\",\"團風縣\",\"紅安縣\",\"羅田縣\",\"英山縣\",\"浠水縣\",\"蘄春縣\",\"黃梅縣\",\"麻城市\",\"武穴市\"],\"咸寧市\":[\"咸安區\",\"嘉魚縣\",\"通城縣\",\"崇陽縣\",\"通山縣\",\"赤壁市\"],\"隨州市\":[\"曾都區\",\"廣水市\"],\"恩施土家族苗族自治州\":[\"恩施市\",\"利川市\",\"建始縣\",\"巴東縣\",\"宣恩縣\",\"咸豐縣\",\"來鳳縣\",\"鶴峰縣\"],\"省直轄行政單位\":[\"仙桃市\",\"潛江市\",\"天門市\",\"神農架林區\"]},\"湖南省\":{\"長沙市\":[\"芙蓉區\",\"天心區\",\"嶽麓區\",\"開福區\",\"雨花區\",\"長沙縣\",\"望城縣\",\"寧鄉縣\",\"瀏陽市\"],\"株洲市\":[\"荷塘區\",\"蘆淞區\",\"石峰區\",\"天元區\",\"株洲縣\",\"攸縣\",\"茶陵縣\",\"炎陵縣\",\"醴陵市\"],\"湘潭市\":[\"雨湖區\",\"嶽塘區\",\"湘潭縣\",\"湘鄉市\",\"韶山市\"],\"衡陽市\":[\"珠暉區\",\"雁峰區\",\"石鼓區\",\"蒸湘區\",\"南嶽區\",\"衡陽縣\",\"衡南縣\",\"衡山縣\",\"衡東縣\",\"祁東縣\",\"耒陽市\",\"常寧市\"],\"邵陽市\":[\"雙清區\",\"大祥區\",\"北塔區\",\"邵東縣\",\"新邵縣\",\"邵陽縣\",\"隆回縣\",\"洞口縣\",\"綏寧縣\",\"新寧縣\",\"城步苗族自治縣\",\"武岡市\"],\"岳陽市\":[\"岳陽樓區\",\"云溪區\",\"君山區\",\"岳陽縣\",\"華容縣\",\"湘陰縣\",\"平江縣\",\"汨羅市\",\"臨湘市\"],\"常德市\":[\"武陵區\",\"鼎城區\",\"安鄉縣\",\"漢壽縣\",\"澧縣\",\"臨澧縣\",\"桃源縣\",\"石門縣\",\"津市市\"],\"張家界市\":[\"永定區\",\"武陵源區\",\"慈利縣\",\"桑植縣\"],\"益陽市\":[\"資陽區\",\"赫山區\",\"南縣\",\"桃江縣\",\"安化縣\",\"沅江市\"],\"郴州市\":[\"北湖區\",\"甦仙區\",\"桂陽縣\",\"宜章縣\",\"永興縣\",\"嘉禾縣\",\"臨武縣\",\"汝城縣\",\"桂東縣\",\"安仁縣\",\"資興市\"],\"永州市\":[\"芝山區\",\"冷水灘區\",\"祁陽縣\",\"東安縣\",\"雙牌縣\",\"道縣\",\"江永縣\",\"寧遠縣\",\"藍山縣\",\"新田縣\",\"江華瑤族自治縣\"],\"懷化市\":[\"鶴城區\",\"中方縣\",\"沅陵縣\",\"辰溪縣\",\"漵浦縣\",\"會同縣\",\"麻陽苗族自治縣\",\"新晃侗族自治縣\",\"芷江侗族自治縣\",\"靖州苗族侗族自治縣\",\"通道侗族自治縣\",\"洪江市\"],\"婁底市\":[\"婁星區\",\"雙峰縣\",\"新化縣\",\"冷水江市\",\"漣源市\"],\"湘西土家族苗族自治州\":[\"吉首市\",\"瀘溪縣\",\"鳳凰縣\",\"花垣縣\",\"保靖縣\",\"古丈縣\",\"永順縣\",\"龍山縣\"]},\"廣東省\":{\"廣州市\":[\"東山區\",\"荔灣區\",\"越秀區\",\"海珠區\",\"天河區\",\"芳村區\",\"白雲區\",\"黃埔區\",\"番禺區\",\"花都區\",\"增城市\",\"從化市\"],\"韶關市\":[\"武江區\",\"湞江區\",\"曲江區\",\"始興縣\",\"仁化縣\",\"翁源縣\",\"乳源瑤族自治縣\",\"新豐縣\",\"樂昌市\",\"南雄市\"],\"深圳市\":[\"羅湖區\",\"福田區\",\"南山區\",\"寶安區\",\"龍崗區\",\"鹽田區\"],\"珠海市\":[\"香洲區\",\"斗門區\",\"金灣區\"],\"汕頭市\":[\"龍湖區\",\"金平區\",\"濠江區\",\"潮陽區\",\"潮南區\",\"澄海區\",\"南澳縣\"],\"佛山市\":[\"禪城區\",\"南海區\",\"順德區\",\"三水區\",\"高明區\"],\"江門市\":[\"蓬江區\",\"江海區\",\"新會區\",\"臺山市\",\"開平市\",\"鶴山市\",\"恩平市\"],\"湛江市\":[\"赤坎區\",\"霞山區\",\"坡頭區\",\"麻章區\",\"遂溪縣\",\"徐聞縣\",\"廉江市\",\"雷州市\",\"吳川市\"],\"茂名市\":[\"茂南區\",\"茂港區\",\"電白縣\",\"高州市\",\"化州市\",\"信宜市\"],\"肇慶市\":[\"端州區\",\"鼎湖區\",\"廣寧縣\",\"懷集縣\",\"封開縣\",\"德慶縣\",\"高要市\",\"四會市\"],\"惠州市\":[\"惠城區\",\"惠陽區\",\"博羅縣\",\"惠東縣\",\"龍門縣\"],\"梅州市\":[\"梅江區\",\"梅縣\",\"大埔縣\",\"豐順縣\",\"五華縣\",\"平遠縣\",\"蕉嶺縣\",\"興寧市\"],\"汕尾市\":[\"城區\",\"海豐縣\",\"陸河縣\",\"陸豐市\"],\"河源市\":[\"源城區\",\"紫金縣\",\"龍川縣\",\"連平縣\",\"和平縣\",\"東源縣\"],\"陽江市\":[\"江城區\",\"陽西縣\",\"陽東縣\",\"陽春市\"],\"清遠市\":[\"清城區\",\"佛岡縣\",\"陽山縣\",\"連山壯族瑤族自治縣\",\"連南瑤族自治縣\",\"清新縣\",\"英德市\",\"連州市\"],\"東莞市\":\"\",\"中山市\":\"\",\"潮州市\":[\"湘橋區\",\"潮安縣\",\"饒平縣\"],\"揭陽市\":[\"榕城區\",\"揭東縣\",\"揭西縣\",\"惠來縣\",\"普寧市\"],\"雲浮市\":[\"云城區\",\"新興縣\",\"鬱南縣\",\"雲安縣\",\"羅定市\"]},\"廣西壯族自治區\":{\"南寧市\":[\"興寧區\",\"青秀區\",\"江南區\",\"西鄉塘區\",\"良慶區\",\"邕寧區\",\"武鳴縣\",\"隆安縣\",\"馬山縣\",\"上林縣\",\"賓陽縣\",\"橫縣\"],\"柳州市\":[\"城中區\",\"魚峰區\",\"柳南區\",\"柳北區\",\"柳江縣\",\"柳城縣\",\"鹿寨縣\",\"融安縣\",\"融水苗族自治縣\",\"三江侗族自治縣\"],\"桂林市\":[\"秀峰區\",\"疊彩區\",\"象山區\",\"七星區\",\"雁山區\",\"陽朔縣\",\"臨桂縣\",\"靈川縣\",\"全州縣\",\"興安縣\",\"永福縣\",\"灌陽縣\",\"龍勝各族自治縣\",\"資源縣\",\"平樂縣\",\"荔蒲縣\",\"恭城瑤族自治縣\"],\"梧州市\":[\"萬秀區\",\"蝶山區\",\"長洲區\",\"蒼梧縣\",\"藤縣\",\"蒙山縣\",\"岑溪市\"],\"北海市\":[\"海城區\",\"銀海區\",\"鐵山港區\",\"合浦縣\"],\"防城港市\":[\"港口區\",\"防城區\",\"上思縣\",\"東興市\"],\"欽州市\":[\"欽南區\",\"欽北區\",\"靈山縣\",\"浦北縣\"],\"貴港市\":[\"港北區\",\"港南區\",\"覃塘區\",\"平南縣\",\"桂平市\"],\"玉林市\":[\"玉州區\",\"容縣\",\"陸川縣\",\"博白縣\",\"興業縣\",\"北流市\"],\"百色市\":[\"右江區\",\"田陽縣\",\"田東縣\",\"平果縣\",\"德保縣\",\"靖西縣\",\"那坡縣\",\"凌雲縣\",\"樂業縣\",\"田林縣\",\"西林縣\",\"隆林各族自治縣\"],\"賀州市\":[\"八步區\",\"昭平縣\",\"鐘山縣\",\"富川瑤族自治縣\"],\"河池市\":[\"金城江區\",\"南丹縣\",\"天峨縣\",\"鳳山縣\",\"東蘭縣\",\"羅城仫佬族自治縣\",\"環江毛南族自治縣\",\"巴馬瑤族自治縣\",\"都安瑤族自治縣\",\"大化瑤族自治縣\",\"宜州市\"],\"來賓市\":[\"興賓區\",\"忻城縣\",\"象州縣\",\"武宣縣\",\"金秀瑤族自治縣\",\"合山市\"],\"崇左市\":[\"江洲區\",\"扶綏縣\",\"寧明縣\",\"龍州縣\",\"大新縣\",\"天等縣\",\"憑祥市\"]},\"海南省\":{\"海口市\":[\"秀英區\",\"龍華區\",\"瓊山區\",\"美蘭區\"],\"三亞市\":[\"市轄區\"],\"省直轄縣級行政單位\":[\"五指山市\",\"瓊海市\",\"儋州市\",\"文昌市\",\"萬寧市\",\"東方市\",\"定安縣\",\"屯昌縣\",\"澄邁縣\",\"臨高縣\",\"白沙黎族自治縣\",\"昌江黎族自治縣\",\"樂東黎族自治縣\",\"陵水黎族自治縣\",\"保亭黎族苗族自治縣\",\"瓊中黎族苗族自治縣\",\"西沙群島\",\"南沙群島\",\"中沙群島的島礁及其海域\"]},\"重慶市\":{\"市轄區\":[\"萬州區\",\"涪陵區\",\"渝中區\",\"大渡口區\",\"江北區\",\"沙坪壩區\",\"九龍坡區\",\"南岸區\",\"北碚區\",\"萬盛區\",\"雙橋區\",\"渝北區\",\"巴南區\",\"黔江區\",\"長壽區\"],\"縣\":[\"綦江縣\",\"潼南縣\",\"銅梁縣\",\"大足縣\",\"榮昌縣\",\"璧山縣\",\"梁平縣\",\"城口縣\",\"豐都縣\",\"墊江縣\",\"武隆縣\",\"忠縣\",\"開縣\",\"雲陽縣\",\"奉節縣\",\"巫山縣\",\"巫溪縣\",\"石柱土家族自治縣\",\"秀山土家族苗族自治縣\",\"酉陽土家族苗族自治縣\",\"彭水苗族土家族自治縣\"],\"市\":[\"江津市\",\"合川市\",\"永川市\",\"南川市\"]},\"四川省\":{\"成都市\":[\"錦江區\",\"青羊區\",\"金牛區\",\"武侯區\",\"成華區\",\"龍泉驛區\",\"青白江區\",\"新都區\",\"溫江區\",\"金堂縣\",\"雙流縣\",\"郫縣\",\"大邑縣\",\"蒲江縣\",\"新津縣\",\"都江堰市\",\"彭州市\",\"邛崍市\",\"崇州市\"],\"自貢市\":[\"自流井區\",\"貢井區\",\"大安區\",\"沿灘區\",\"榮縣\",\"富順縣\"],\"攀枝花市\":[\"東區\",\"西區\",\"仁和區\",\"米易縣\",\"鹽邊縣\"],\"瀘州市\":[\"江陽區\",\"納溪區\",\"龍馬潭區\",\"瀘縣\",\"合江縣\",\"敘永縣\",\"古藺縣\"],\"德陽市\":[\"旌陽區\",\"中江縣\",\"羅江縣\",\"廣漢市\",\"什邡市\",\"綿竹市\"],\"綿陽市\":[\"涪城區\",\"遊仙區\",\"三臺縣\",\"鹽亭縣\",\"安縣\",\"梓潼縣\",\"北川羌族自治縣\",\"平武縣\",\"江油市\"],\"廣元市\":[\"市中區\",\"元壩區\",\"朝天區\",\"旺蒼縣\",\"青川縣\",\"劍閣縣\",\"蒼溪縣\"],\"遂寧市\":[\"船山區\",\"安居區\",\"蓬溪縣\",\"射洪縣\",\"大英縣\"],\"內江市\":[\"市中區\",\"東興區\",\"威遠縣\",\"資中縣\",\"隆昌縣\"],\"樂山市\":[\"市中區\",\"沙灣區\",\"五通橋區\",\"金口河區\",\"犍為縣\",\"井研縣\",\"夾江縣\",\"沐川縣\",\"峨邊彝族自治縣\",\"馬邊彝族自治縣\",\"峨眉山市\"],\"南充市\":[\"順慶區\",\"高坪區\",\"嘉陵區\",\"南部縣\",\"營山縣\",\"蓬安縣\",\"儀隴縣\",\"西充縣\",\"閬中市\"],\"眉山市\":[\"東坡區\",\"仁壽縣\",\"彭山縣\",\"洪雅縣\",\"丹稜縣\",\"青神縣\"],\"宜賓市\":[\"翠屏區\",\"宜賓縣\",\"南溪縣\",\"江安縣\",\"長寧縣\",\"高縣\",\"珙縣\",\"筠連縣\",\"興文縣\",\"屏山縣\"],\"廣安市\":[\"廣安區\",\"嶽池縣\",\"武勝縣\",\"鄰水縣\",\"華瑩市\"],\"達州市\":[\"通川區\",\"達縣\",\"宣漢縣\",\"開江縣\",\"大竹縣\",\"渠縣\",\"萬源市\"],\"雅安市\":[\"雨城區\",\"名山縣\",\"滎經縣\",\"漢源縣\",\"石棉縣\",\"天全縣\",\"蘆山縣\",\"寶興縣\"],\"巴中市\":[\"巴州區\",\"通江縣\",\"南江縣\",\"平昌縣\"],\"資陽市\":[\"雁江區\",\"安嶽縣\",\"樂至縣\",\"簡陽市\"],\"阿壩藏族羌族自治州\":[\"汶川縣\",\"理縣\",\"茂縣\",\"松潘縣\",\"九寨溝縣\",\"金川縣\",\"小金縣\",\"黑水縣\",\"馬爾康縣\",\"壤塘縣\",\"阿壩縣\",\"若爾蓋縣\",\"紅原縣\"],\"甘孜藏族自治州\":[\"康定縣\",\"瀘定縣\",\"丹巴縣\",\"九龍縣\",\"雅江縣\",\"道孚縣\",\"爐霍縣\",\"甘孜縣\",\"新龍縣\",\"德格縣\",\"白玉縣\",\"石渠縣\",\"色達縣\",\"理塘縣\",\"巴塘縣\",\"鄉城縣\",\"稻城縣\",\"得榮縣\"],\"涼山彝族自治州\":[\"西昌市\",\"木裡藏族自治縣\",\"鹽源縣\",\"德昌縣\",\"會理縣\",\"會東縣\",\"寧南縣\",\"普格縣\",\"布拖縣\",\"金陽縣\",\"昭覺縣\",\"喜德縣\",\"冕寧縣\",\"越西縣\",\"甘洛縣\",\"美姑縣\",\"雷波縣\"]},\"貴州省\":{\"貴陽市\":[\"南明區\",\"雲巖區\",\"花溪區\",\"烏當區\",\"白雲區\",\"小河區\",\"開陽縣\",\"息烽縣\",\"修文縣\",\"清鎮市\"],\"六盤水市\":[\"鐘山區\",\"六枝特區\",\"水城縣\",\"盤縣\"],\"遵義市\":[\"紅花崗區\",\"匯川區\",\"遵義縣\",\"桐梓縣\",\"綏陽縣\",\"正安縣\",\"道真仡佬族苗族自治縣\",\"務川仡佬族苗族自治縣\",\"鳳岡縣\",\"湄潭縣\",\"餘慶縣\",\"習水縣\",\"赤水市\",\"仁懷市\"],\"安順市\":[\"西秀區\",\"平壩縣\",\"普定縣\",\"鎮寧布依族苗族自治縣\",\"關嶺布依族苗族自治縣\",\"紫云苗族布依族自治縣\"],\"銅仁地區\":[\"銅仁市\",\"江口縣\",\"玉屏侗族自治縣\",\"石阡縣\",\"思南縣\",\"印江土家族苗族自治縣\",\"德江縣\",\"沿河土家族自治縣\",\"松桃苗族自治縣\",\"萬山特區\"],\"黔西南布依族苗族自治州\":[\"興義市\",\"興仁縣\",\"普安縣\",\"晴隆縣\",\"貞豐縣\",\"望謨縣\",\"冊亨縣\",\"安龍縣\"],\"畢節地區\":[\"畢節市\",\"大方縣\",\"黔西縣\",\"金沙縣\",\"織金縣\",\"納雍縣\",\"威寧彝族回族苗族自治縣\",\"赫章縣\"],\"黔東南苗族侗族自治州\":[\"凱裡市\",\"黃平縣\",\"施秉縣\",\"三穗縣\",\"鎮遠縣\",\"岑鞏縣\",\"天柱縣\",\"錦屏縣\",\"劍河縣\",\"臺江縣\",\"黎平縣\",\"榕江縣\",\"從江縣\",\"雷山縣\",\"麻江縣\",\"丹寨縣\"],\"黔南布依族苗族自治州\":[\"都勻市\",\"福泉市\",\"荔波縣\",\"貴定縣\",\"甕安縣\",\"獨山縣\",\"平塘縣\",\"羅甸縣\",\"長順縣\",\"龍裡縣\",\"惠水縣\",\"三都水族自治縣\"]},\"雲南省\":{\"昆明市\":[\"五華區\",\"盤龍區\",\"官渡區\",\"西山區\",\"東川區\",\"呈貢縣\",\"晉寧縣\",\"富民縣\",\"宜良縣\",\"石林彝族自治縣\",\"嵩明縣\",\"祿勸彝族苗族自治縣\",\"尋甸回族彝族自治縣\",\"安寧市\"],\"曲靖市\":[\"麒麟區\",\"馬龍縣\",\"陸良縣\",\"師宗縣\",\"羅平縣\",\"富源縣\",\"會澤縣\",\"沾益縣\",\"宣威市\"],\"玉溪市\":[\"紅塔區\",\"江川縣\",\"澄江縣\",\"通海縣\",\"華寧縣\",\"易門縣\",\"峨山彝族自治縣\",\"新平彝族傣族自治縣\",\"元江哈尼族彝族傣族自治縣\"],\"保山市\":[\"隆陽區\",\"施甸縣\",\"騰衝縣\",\"龍陵縣\",\"昌寧縣\"],\"昭通市\":[\"昭陽區\",\"魯甸縣\",\"巧家縣\",\"鹽津縣\",\"大關縣\",\"永善縣\",\"綏江縣\",\"鎮雄縣\",\"彝良縣\",\"威信縣\",\"水富縣\"],\"麗江市\":[\"古城區\",\"玉龍納西族自治縣\",\"永勝縣\",\"華坪縣\",\"寧蒗彝族自治縣\"],\"思茅市\":[\"翠雲區\",\"普洱哈尼族彝族自治縣\",\"墨江哈尼族自治縣\",\"景東彝族自治縣\",\"景谷傣族彝族自治縣\",\"鎮沅彝族哈尼族拉祜族自治縣\",\"江城哈尼族彝族自治縣\",\"孟連傣族拉祜族佤族自治縣\",\"瀾滄拉祜族自治縣\",\"西盟佤族自治縣\"],\"臨滄市\":[\"臨翔區\",\"鳳慶縣\",\"雲縣\",\"永德縣\",\"鎮康縣\",\"雙江拉祜族佤族布朗族傣族自治縣\",\"耿馬傣族佤族自治縣\",\"滄源佤族自治縣\"],\"楚雄彝族自治州\":[\"楚雄市\",\"雙柏縣\",\"牟定縣\",\"南華縣\",\"姚安縣\",\"大姚縣\",\"永仁縣\",\"元謀縣\",\"武定縣\",\"祿豐縣\"],\"紅河哈尼族彝族自治州\":[\"箇舊市\",\"開遠市\",\"蒙自縣\",\"屏邊苗族自治縣\",\"建水縣\",\"石屏縣\",\"彌勒縣\",\"瀘西縣\",\"元陽縣\",\"紅河縣\",\"金平苗族瑤族傣族自治縣\",\"綠春縣\",\"河口瑤族自治縣\"],\"文山壯族苗族自治州\":[\"文山縣\",\"硯山縣\",\"西疇縣\",\"麻栗坡縣\",\"馬關縣\",\"丘北縣\",\"廣南縣\",\"富寧縣\"],\"西雙版納傣族自治州\":[\"景洪市\",\"勐海縣\",\"勐臘縣\"],\"大理白族自治州\":[\"大理市\",\"漾濞彝族自治縣\",\"祥雲縣\",\"賓川縣\",\"彌渡縣\",\"南澗彝族自治縣\",\"巍山彝族回族自治縣\",\"永平縣\",\"雲龍縣\",\"洱源縣\",\"劍川縣\",\"鶴慶縣\"],\"德巨集傣族景頗族自治州\":[\"瑞麗市\",\"潞西市\",\"梁河縣\",\"盈江縣\",\"隴川縣\"],\"怒江傈僳族自治州\":[\"瀘水縣\",\"福貢縣\",\"貢山獨龍族怒族自治縣\",\"蘭坪白族普米族自治縣\"],\"迪慶藏族自治州\":[\"香格裡拉縣\",\"德欽縣\",\"維西傈僳族自治縣\"]},\"西藏自治區\":{\"拉薩市\":[\"城關區\",\"林周縣\",\"當雄縣\",\"尼木縣\",\"曲水縣\",\"堆龍德慶縣\",\"達孜縣\",\"墨竹工卡縣\"],\"昌都地區\":[\"昌都縣\",\"江達縣\",\"貢覺縣\",\"類烏齊縣\",\"丁青縣\",\"察雅縣\",\"八宿縣\",\"左貢縣\",\"芒康縣\",\"洛隆縣\",\"邊壩縣\"],\"山南地區\":[\"乃東縣\",\"扎囊縣\",\"貢嘎縣\",\"桑日縣\",\"瓊結縣\",\"曲松縣\",\"措美縣\",\"洛扎縣\",\"加查縣\",\"隆子縣\",\"錯那縣\",\"浪卡子縣\"],\"日喀則地區\":[\"日喀則市\",\"南木林縣\",\"江孜縣\",\"定日縣\",\"薩迦縣\",\"拉孜縣\",\"昂仁縣\",\"謝通門縣\",\"白朗縣\",\"仁布縣\",\"康馬縣\",\"定結縣\",\"仲巴縣\",\"亞東縣\",\"吉隆縣\",\"聶拉木縣\",\"薩嘎縣\",\"崗巴縣\"],\"那曲地區\":[\"那曲縣\",\"嘉黎縣\",\"比如縣\",\"聶榮縣\",\"安多縣\",\"申扎縣\",\"索縣\",\"班戈縣\",\"巴青縣\",\"尼瑪縣\"],\"阿里地區\":[\"普蘭縣\",\"札達縣\",\"噶爾縣\",\"日土縣\",\"革吉縣\",\"改則縣\",\"措勤縣\"],\"林芝地區\":[\"林芝縣\",\"工布江達縣\",\"米林縣\",\"墨脫縣\",\"波密縣\",\"察隅縣\",\"朗縣\"]},\"陝西省\":{\"西安市\":[\"新城區\",\"碑林區\",\"蓮湖區\",\"灞橋區\",\"未央區\",\"雁塔區\",\"閻良區\",\"臨潼區\",\"長安區\",\"藍田縣\",\"周至縣\",\"戶縣\",\"高陵縣\"],\"銅川市\":[\"王益區\",\"印臺區\",\"耀州區\",\"宜君縣\"],\"寶雞市\":[\"渭濱區\",\"金臺區\",\"陳倉區\",\"鳳翔縣\",\"岐山縣\",\"扶風縣\",\"眉縣\",\"隴縣\",\"千陽縣\",\"麟遊縣\",\"鳳縣\",\"太白縣\"],\"咸陽市\":[\"秦都區\",\"楊凌區\",\"渭城區\",\"三原縣\",\"涇陽縣\",\"乾縣\",\"禮泉縣\",\"永壽縣\",\"彬縣\",\"長武縣\",\"旬邑縣\",\"淳化縣\",\"武功縣\",\"興平市\"],\"渭南市\":[\"臨渭區\",\"華縣\",\"潼關縣\",\"大荔縣\",\"合陽縣\",\"澄城縣\",\"蒲城縣\",\"白水縣\",\"富平縣\",\"韓城市\",\"華陰市\"],\"延安市\":[\"寶塔區\",\"延長縣\",\"延川縣\",\"子長縣\",\"安塞縣\",\"志丹縣\",\"吳旗縣\",\"甘泉縣\",\"富縣\",\"洛川縣\",\"宜川縣\",\"黃龍縣\",\"黃陵縣\"],\"漢中市\":[\"漢臺區\",\"南鄭縣\",\"城固縣\",\"洋縣\",\"西鄉縣\",\"勉縣\",\"寧強縣\",\"略陽縣\",\"鎮巴縣\",\"留壩縣\",\"佛坪縣\"],\"榆林市\":[\"榆陽區\",\"神木縣\",\"府谷縣\",\"橫山縣\",\"靖邊縣\",\"定邊縣\",\"綏德縣\",\"米脂縣\",\"佳縣\",\"吳堡縣\",\"清澗縣\",\"子洲縣\"],\"安康市\":[\"漢濱區\",\"漢陰縣\",\"石泉縣\",\"寧陝縣\",\"紫陽縣\",\"嵐皋縣\",\"平利縣\",\"鎮坪縣\",\"旬陽縣\",\"白河縣\"],\"商洛市\":[\"商州區\",\"洛南縣\",\"丹鳳縣\",\"商南縣\",\"山陽縣\",\"鎮安縣\",\"柞水縣\"]},\"甘肅省\":{\"蘭州市\":[\"城關區\",\"七里河區\",\"西固區\",\"安寧區\",\"紅古區\",\"永登縣\",\"皋蘭縣\",\"榆中縣\"],\"嘉峪關市\":[\"市轄區\"],\"金昌市\":[\"金川區\",\"永昌縣\"],\"白銀市\":[\"白銀區\",\"平川區\",\"靖遠縣\",\"會寧縣\",\"景泰縣\"],\"天水市\":[\"秦城區\",\"北道區\",\"清水縣\",\"秦安縣\",\"甘谷縣\",\"武山縣\",\"張家川回族自治縣\"],\"武威市\":[\"涼州區\",\"民勤縣\",\"古浪縣\",\"天祝藏族自治縣\"],\"張掖市\":[\"甘州區\",\"肅南裕固族自治縣\",\"民樂縣\",\"臨澤縣\",\"高臺縣\",\"山丹縣\"],\"平涼市\":[\"崆峒區\",\"涇川縣\",\"靈臺縣\",\"崇信縣\",\"華亭縣\",\"莊浪縣\",\"靜寧縣\"],\"酒泉市\":[\"肅州區\",\"金塔縣\",\"安西縣\",\"肅北蒙古族自治縣\",\"阿克塞哈薩克族自治縣\",\"玉門市\",\"敦煌市\"],\"慶陽市\":[\"西峰區\",\"慶城縣\",\"環縣\",\"華池縣\",\"合水縣\",\"正寧縣\",\"寧縣\",\"鎮原縣\"],\"定西市\":[\"安定區\",\"通渭縣\",\"隴西縣\",\"渭源縣\",\"臨洮縣\",\"漳縣\",\"岷縣\"],\"隴南市\":[\"武都區\",\"成縣\",\"文縣\",\"宕昌縣\",\"康縣\",\"西和縣\",\"禮縣\",\"徽縣\",\"兩當縣\"],\"臨夏回族自治州\":[\"臨夏市\",\"臨夏縣\",\"康樂縣\",\"永靖縣\",\"廣河縣\",\"和政縣\",\"東鄉族自治縣\",\"積石山保安族東鄉族撒拉族自治縣\"],\"甘南藏族自治州\":[\"合作市\",\"臨潭縣\",\"卓尼縣\",\"舟曲縣\",\"迭部縣\",\"瑪曲縣\",\"碌曲縣\",\"夏河縣\"]},\"青海省\":{\"西寧市\":[\"城東區\",\"城中區\",\"城西區\",\"城北區\",\"大通回族土族自治縣\",\"湟中縣\",\"湟源縣\"],\"海東地區\":[\"平安縣\",\"民和回族土族自治縣\",\"樂都縣\",\"互助土族自治縣\",\"化隆回族自治縣\",\"循化撒拉族自治縣\"],\"海北藏族自治州\":[\"門源回族自治縣\",\"祁連縣\",\"海晏縣\",\"剛察縣\"],\"黃南藏族自治州\":[\"同仁縣\",\"尖扎縣\",\"澤庫縣\",\"河南蒙古族自治縣\"],\"海南藏族自治州\":[\"共和縣\",\"同德縣\",\"貴德縣\",\"興海縣\",\"貴南縣\"],\"果洛藏族自治州\":[\"瑪沁縣\",\"班瑪縣\",\"甘德縣\",\"達日縣\",\"久治縣\",\"瑪多縣\"],\"玉樹藏族自治州\":[\"玉樹縣\",\"雜多縣\",\"稱多縣\",\"治多縣\",\"囊謙縣\",\"曲麻萊縣\"],\"海西蒙古族藏族自治州\":[\"格爾木市\",\"德令哈市\",\"烏蘭縣\",\"都蘭縣\",\"天峻縣\"]},\"寧夏回族自治區\":{\"銀川市\":[\"興慶區\",\"西夏區\",\"金鳳區\",\"永寧縣\",\"賀蘭縣\",\"靈武市\"],\"石嘴山市\":[\"大武口區\",\"惠農區\",\"平羅縣\"],\"吳忠市\":[\"利通區\",\"鹽池縣\",\"同心縣\",\"青銅峽市\"],\"固原市\":[\"原州區\",\"西吉縣\",\"隆德縣\",\"涇源縣\",\"彭陽縣\"],\"中衛市\":[\"沙坡頭區\",\"中寧縣\",\"海原縣\"]},\"新疆維吾爾自治區\":{\"烏魯木齊市\":[\"天山區\",\"沙依巴克區\",\"新市區\",\"水磨溝區\",\"頭屯河區\",\"達阪城區\",\"東山區\",\"烏魯木齊縣\"],\"克拉瑪依市\":[\"獨山子區\",\"克拉瑪依區\",\"白鹼灘區\",\"烏爾禾區\"],\"吐魯番地區\":[\"吐魯番市\",\"鄯善縣\",\"托克遜縣\"],\"哈密地區\":[\"哈密市\",\"巴裡坤哈薩克自治縣\",\"伊吾縣\"],\"昌吉回族自治州\":[\"昌吉市\",\"阜康市\",\"米泉市\",\"呼圖壁縣\",\"瑪納斯縣\",\"奇臺縣\",\"吉木薩爾縣\",\"木壘哈薩克自治縣\"],\"博爾塔拉蒙古自治州\":[\"博樂市\",\"精河縣\",\"溫泉縣\"],\"巴音郭楞蒙古自治州\":[\"庫爾勒市\",\"輪臺縣\",\"尉犁縣\",\"若羌縣\",\"且末縣\",\"焉耆回族自治縣\",\"和靜縣\",\"和碩縣\",\"博湖縣\"],\"阿克蘇地區\":[\"阿克蘇市\",\"溫宿縣\",\"庫車縣\",\"沙雅縣\",\"新和縣\",\"拜城縣\",\"烏什縣\",\"阿瓦提縣\",\"柯坪縣\"],\"克孜勒蘇柯爾克孜自治州\":[\"阿圖什市\",\"阿克陶縣\",\"阿合奇縣\",\"烏恰縣\"],\"喀什地區\":[\"喀什市\",\"疏附縣\",\"疏勒縣\",\"英吉沙縣\",\"澤普縣\",\"莎車縣\",\"葉城縣\",\"麥蓋提縣\",\"嶽普湖縣\",\"伽師縣\",\"巴楚縣\",\"塔什庫爾干塔吉克自治縣\"],\"和田地區\":[\"和田市\",\"和田縣\",\"墨玉縣\",\"皮山縣\",\"洛浦縣\",\"策勒縣\",\"于田縣\",\"民豐縣\"],\"伊犁哈薩克自治州\":[\"伊寧市\",\"奎屯市\",\"伊寧縣\",\"察布查爾錫伯自治縣\",\"霍城縣\",\"鞏留縣\",\"新源縣\",\"昭蘇縣\",\"特克斯縣\",\"尼勒克縣\"],\"塔城地區\":[\"塔城市\",\"烏蘇市\",\"額敏縣\",\"沙灣縣\",\"托裡縣\",\"裕民縣\",\"和布克賽爾蒙古自治縣\"],\"阿勒泰地區\":[\"阿勒泰市\",\"布林津縣\",\"富蘊縣\",\"福海縣\",\"哈巴河縣\",\"青河縣\",\"吉木乃縣\"],\"省直轄行政單位\":[\"石河子市\",\"阿拉爾市\",\"圖木舒克市\",\"五家渠市\"]},\"臺灣省\":\"臺灣省\",\"香港特別行政區\":\"\",\"澳門特別行政區\":\"\"}";
this.AllData = JObject.Parse(jsonText);
StringBuilder sb = new StringBuilder();
foreach (KeyValuePair<string, JToken> keyValuePair in this.AllData) { sb.Append(keyValuePair.Key); sb.Append(","); this.Province.Items.Add(keyValuePair.Key); }
//MessageBox.Show(sb.ToString());
}
private void button2_Click(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
sb.Append("選擇的區域為:");
sb.Append((string)this.Province.SelectedItem);
sb.Append(",");
sb.Append((string)this.City.SelectedItem);
sb.Append(",");
sb.Append((string)this.County.SelectedItem);
sb.Append("。");
MessageBox.Show(sb.ToString());
}
private void Province_SelectedIndexChanged(object sender, EventArgs e)
{
this.City.SelectedItem = null;
this.City.Items.Clear();
JObject jo = JObject.Parse(this.AllData[(string)this.Province.SelectedItem].ToString());
foreach (KeyValuePair<string, JToken> keyValuePair in jo) {this.City.Items.Add(keyValuePair.Key); }
}
private void City_SelectedIndexChanged(object sender, EventArgs e)
{
this.County.SelectedItem = null;
this.County.Items.Clear();
JObject cty = JObject.Parse(this.AllData[(string)this.Province.SelectedItem].ToString());
if (this.City.SelectedItem == null)
return;
Newtonsoft.Json.Linq.JArray jarray = Newtonsoft.Json.Linq.JArray.Parse(cty[(string)this.City.SelectedItem].ToString());
// county.
for (int i = 0; i < jarray.Count; i++)
{
this.County.Items.Add(jarray[i].ToString());
}
}
private void Cancel_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
需要注意的是,每次更新combobox時要把之前的內容清空,否則會出現越越選擇,combobox內容越多的情況。