1. 程式人生 > >Jsoncpp解析中國地區編碼JSON資料

Jsoncpp解析中國地區編碼JSON資料

一.中國地區編碼JSON資料

{
  "086":["中國","0"],
  "110000":["北京","086"],
  "110100":["北京市","110000"],
  "110101":["東城區","110100"],
  "110102":["西城區","110100"],
  "110105":["朝陽區","110100"],
  "110106":["豐臺區","110100"],
  "110107":["石景山區","110100"],
  "110108":["海淀區","110100"],
  "110109":["門頭溝區","110100"],
  "110111":["房山區","110100"],
  "110112":["通州區","110100"],
  "110113
":["順義區","110100"], "110114":["昌平區","110100"], "110115":["大興區","110100"], "110116":["懷柔區","110100"], "110117":["平谷區","110100"], "110228":["密雲縣","110100"], "110229":["延慶縣","110100"], "120000":["天津","086"], "120100":["天津市","120000"], "120101":["和平區","120100"], "120102":["河東區","120100"], "120103":["河西區","120100"], "120104":["南開區","120100"
]
, "120105":["河北區","120100"], "120106":["紅橋區","120100"], "120110":["東麗區","120100"], "120111":["西青區","120100"], "120112":["津南區","120100"], "120113":["北辰區","120100"], "120114":["武清區","120100"], "120115":["寶坻區","120100"], "120116":["濱海新區","120100"], "120221":["寧河縣","120100"], "120223":["靜海縣","120100"], "120225":["薊縣","120100"], "130000
":["河北省","086"], "130100":["石家莊市","130000"], "130102":["長安區","130100"], "130104":["橋西區","130100"], "130105":["新華區","130100"], "130107":["井陘礦區","130100"], "130108":["裕華區","130100"], "130109":["藁城區","130100"], "130110":["鹿泉區","130100"], "130111":["欒城區","130100"], "130121":["井陘縣","130100"], "130123":["正定縣","130100"], "130125":["行唐縣","130100"], "130126":["靈壽縣","130100"], "130127":["高邑縣","130100"], "130128":["深澤縣","130100"], "130129":["贊皇縣","130100"], "130130":["無極縣","130100"], "130131":["平山縣","130100"], "130132":["元氏縣","130100"], "130133":["趙縣","130100"], "130181":["辛集市","130100"], "130183":["晉州市","130100"], "130184":["新樂市","130100"], "130200":["唐山市","130000"], "130202":["路南區","130200"], "130203":["路北區","130200"], "130204":["古冶區","130200"], "130205":["開平區","130200"], "130207":["豐南區","130200"], "130208":["豐潤區","130200"], "130209":["曹妃甸區","130200"], "130223":["灤縣","130200"], "130224":["灤南縣","130200"], "130225":["樂亭縣","130200"], "130227":["遷西縣","130200"], "130229":["玉田縣","130200"], "130281":["遵化市","130200"], "130283":["遷安市","130200"], "130300":["秦皇島市","130000"], "130302":["海港區","130300"], "130303":["山海關區","130300"], "130304":["北戴河區","130300"], "130321":["青龍滿族自治縣","130300"], "130322":["昌黎縣","130300"], "130323":["撫寧縣","130300"], "130324":["盧龍縣","130300"], "130400":["邯鄲市","130000"], "130402":["邯山區","130400"], "130403":["叢臺區","130400"], "130404":["復興區","130400"], "130406":["峰峰礦區","130400"], "130421":["邯鄲縣","130400"], "130423":["臨漳縣","130400"], "130424":["成安縣","130400"], "130425":["大名縣","130400"], "130426":["涉縣","130400"], "130427":["磁縣","130400"], "130428":["肥鄉縣","130400"], "130429":["永年縣","130400"], "130430":["邱縣","130400"], "130431":["雞澤縣","130400"], "130432":["廣平縣","130400"], "130433":["館陶縣","130400"], "130434":["魏縣","130400"], "130435":["曲周縣","130400"], "130481":["武安市","130400"], "130500":["邢臺市","130000"], "130502":["橋東區","130500"], "130503":["橋西區","130500"], "130521":["邢臺縣","130500"], "130522":["臨城縣","130500"], "130523":["內丘縣","130500"], "130524":["柏鄉縣","130500"], "130525":["隆堯縣","130500"], "130526":["任縣","130500"], "130527":["南和縣","130500"], "130528":["寧晉縣","130500"], "130529":["鉅鹿縣","130500"], "130530":["新河縣","130500"], "130531":["廣宗縣","130500"], "130532":["平鄉縣","130500"], "130533":["威縣","130500"], "130534":["清河縣","130500"], "130535":["臨西縣","130500"], "130581":["南宮市","130500"], "130582":["沙河市","130500"], "130600":["保定市","130000"], "130602":["新市區","130600"], "130603":["北市區","130600"], "130604":["南市區","130600"], "130621":["滿城縣","130600"], "130622":["清苑縣","130600"], "130623":["淶水縣","130600"], "130624":["阜平縣","130600"], "130625":["徐水縣","130600"], "130626":["定興縣","130600"], "130627":["唐縣","130600"], "130628":["高陽縣","130600"], "130629":["容城縣","130600"], "130630":["淶源縣","130600"], "130631":["望都縣","130600"], "130632":["安新縣","130600"], "130633":["易縣","130600"], "130634":["曲陽縣","130600"], "130635":["蠡縣","130600"], "130636":["順平縣","130600"], "130637":["博野縣","130600"], "130638":["雄縣","130600"], "130681":["涿州市","130600"], "130682":["定州市","130600"], "130683":["安國市","130600"], "130684":["高碑店市","130600"], "130700":["張家口市","130000"], "130702":["橋東區","130700"], "130703":["橋西區","130700"], "130705":["宣化區","130700"], "130706":["下花園區","130700"], "130721":["宣化縣","130700"], "130722":["張北縣","130700"], "130723":["康保縣","130700"], "130724":["沽源縣","130700"], "130725":["尚義縣","130700"], "130726":["蔚縣","130700"], "130727":["陽原縣","130700"], "130728":["懷安縣","130700"], "130729":["萬全縣","130700"], "130730":["懷來縣","130700"], "130731":["涿鹿縣","130700"], "130732":["赤城縣","130700"], "130733":["崇禮縣","130700"], "130800":["承德市","130000"], "130802":["雙橋區","130800"], "130803":["雙灤區","130800"], "130804":["鷹手營子礦區","130800"], "130821":["承德縣","130800"], "130822":["興隆縣","130800"], "130823":["平泉縣","130800"], "130824":["灤平縣","130800"], "130825":["隆化縣","130800"], "130826":["豐寧滿族自治縣","130800"], "130827":["寬城滿族自治縣","130800"], "130828":["圍場滿族蒙古族自治縣","130800"], "130900":["滄州市","130000"], "130902":["新華區","130900"], "130903":["運河區","130900"], "130921":["滄縣","130900"], "130922":["青縣","130900"], "130923":["東光縣","130900"], "130924":["海興縣","130900"], "130925":["鹽山縣","130900"], "130926":["肅寧縣","130900"], "130927":["南皮縣","130900"], "130928":["吳橋縣","130900"], "130929":["獻縣","130900"], "130930":["孟村回族自治縣","130900"], "130981":["泊頭市","130900"], "130982":["任丘市","130900"], "130983":["黃驊市","130900"], "130984":["河間市","130900"], "131000":["廊坊市","130000"], "131002":["安次區","131000"], "131003":["廣陽區","131000"], "131022":["固安縣","131000"], "131023":["永清縣","131000"], "131024":["香河縣","131000"], "131025":["大城縣","131000"], "131026":["文安縣","131000"], "131028":["大廠回族自治縣","131000"], "131081":["霸州市","131000"], "131082":["三河市","131000"], "131100":["衡水市","130000"], "131102":["桃城區","131100"], "131121":["棗強縣","131100"], "131122":["武邑縣","131100"], "131123":["武強縣","131100"], "131124":["饒陽縣","131100"], "131125":["安平縣","131100"], "131126":["故城縣","131100"], "131127":["景縣","131100"], "131128":["阜城縣","131100"], "131181":["冀州市","131100"], "131182":["深州市","131100"], "140000":["山西省","086"], "140100":["太原市","140000"], "140105":["小店區","140100"], "140106":["迎澤區","140100"], "140107":["杏花嶺區","140100"], "140108":["尖草坪區","140100"], "140109":["萬柏林區","140100"], "140110":["晉源區","140100"], "140121":["清徐縣","140100"], "140122":["陽曲縣","140100"], "140123":["婁煩縣","140100"], "140181":["古交市","140100"], "140200":["大同市","140000"], "140202":["城區","140200"], "140203":["礦區","140200"], "140211":["南郊區","140200"], "140212":["新榮區","140200"], "140221":["陽高縣","140200"], "140222":["天鎮縣","140200"], "140223":["廣靈縣","140200"], "140224":["靈丘縣","140200"], "140225":["渾源縣","140200"], "140226":["左雲縣","140200"], "140227":["大同縣","140200"], "140300":["陽泉市","140000"], "140302":["城區","140300"], "140303":["礦區","140300"], "140311":["郊區","140300"], "140321":["平定縣","140300"], "140322":["盂縣","140300"], "140400":["長治市","140000"], "140402":["城區","140400"], "140411":["郊區","140400"], "140421":["長治縣","140400"], "140423":["襄垣縣","140400"], "140424":["屯留縣","140400"], "140425":["平順縣","140400"], "140426":["黎城縣","140400"], "140427":["壺關縣","140400"], "140428":["長子縣","140400"], "140429":["武鄉縣","140400"], "140430":["沁縣","140400"], "140431":["沁源縣","140400"], "140481":["潞城市","140400"], "140500":["晉城市","140000"], "140502":["城區","140500"], "140521":["沁水縣","140500"], "140522":["陽城縣","140500"], "140524":["陵川縣","140500"], "140525":["澤州縣","140500"], "140581":["高平市","140500"], "140600":["朔州市","140000"], "140602":["朔城區","140600"], "140603":["平魯區","140600"], "140621":["山陰縣","140600"], "140622":["應縣","140600"], "140623":["右玉縣","140600"], "140624":["懷仁縣","140600"], "140700":["晉中市","140000"], "140702":["榆次區","140700"], "140721":["榆社縣","140700"], "140722":["左權縣","140700"], "140723":["和順縣","140700"], "140724":["昔陽縣","140700"], "140725":["壽陽縣","140700"], "140726":["太谷縣","140700"], "140727":["祁縣","140700"], "140728":["平遙縣","140700"], "140729":["靈石縣","140700"], "140781":["介休市","140700"], "140800":["運城市","140000"], "140802":["鹽湖區","140800"], "140821":["臨猗縣","140800"], "140822":["萬榮縣","140800"], "140823":["聞喜縣","140800"], "140824":["稷山縣","140800"], "140825":["新絳縣","140800"], "140826":["絳縣","140800"], "140827":["垣曲縣","140800"], "140828":["夏縣","140800"], "140829":["平陸縣","140800"], "140830":["芮城縣","140800"], "140881":["永濟市","140800"], "140882":["河津市","140800"], "140900":["忻州市","140000"], "140902":["忻府區","140900"], "140921":["定襄縣","140900"], "140922":["五臺縣","140900"], "140923":["代縣","140900"], "140924":["繁峙縣","140900"], "140925":["寧武縣","140900"], "140926":["靜樂縣","140900"], "140927":["神池縣","140900"], "140928":["五寨縣","140900"], "140929":["岢嵐縣","140900"], "140930":["河曲縣","140900"], "140931":["保德縣","140900"], "140932":["偏關縣","140900"], "140981":["原平市","140900"], "141000":["臨汾市","140000"], "141002":["堯都區","141000"], "141021":["曲沃縣","141000"], "141022":["翼城縣","141000"], "141023":["襄汾縣","141000"], "141024":["洪洞縣","141000"], "141025":["古縣","141000"], "141026":["安澤縣","141000"], "141027":["浮山縣","141000"], "141028":["吉縣","141000"], "141029":["鄉寧縣","141000"], "141030":["大寧縣","141000"], "141031":["隰縣","141000"], "141032":["永和縣","141000"], "141033":["蒲縣","141000"], "141034":["汾西縣","141000"], "141081":["侯馬市","141000"], "141082":["霍州市","141000"], "141100":["呂梁市","140000"], "141102":["離石區","141100"], "141121":["文水縣","141100"], "141122":["交城縣","141100"], "141123":["興縣","141100"], "141124":["臨縣","141100"], "141125":["柳林縣","141100"], "141126":["石樓縣","141100"], "141127":["嵐縣","141100"], "141128":["方山縣","141100"], "141129":["中陽縣","141100"], "141130":["交口縣","141100"], "141181":["孝義市","141100"], "141182":["汾陽市","141100"], "150000":["內蒙古自治區","086"], "150100":["呼和浩特市","150000"], "150102":["新城區","150100"], "150103":["回民區","150100"], "150104":["玉泉區","150100"], "150105":["賽罕區","150100"], "150121":["土默特左旗","150100"], "150122":["托克托縣","150100"], "150123":["和林格爾縣","150100"], "150124":["清水河縣","150100"], "150125":["武川縣","150100"], "150200":["包頭市","150000"], "150202":["東河區","150200"], "150203":["昆都侖區","150200"], "150204":["青山區","150200"], "150205":["石柺區","150200"], "150206":["白雲鄂博礦區","150200"], "150207":["九原區","150200"], "150221":["土默特右旗","150200"], "150222":["固陽縣","150200"], "150223":["達爾罕茂明安聯合旗","150200"], "150300":["烏海市","150000"], "150302":["海勃灣區","150300"], "150303":["海南區","150300"], "150304":["烏達區","150300"], "150400":["赤峰市","150000"], "150402":["紅山區","150400"], "150403":["元寶山區","150400"], "150404":["松山區","150400"], "150421":["阿魯科爾沁旗","150400"], "150422":["巴林左旗","150400"], "150423":["巴林右旗","150400"], "150424":["林西縣","150400"], "150425":["克什克騰旗","150400"], "150426":["翁牛特旗","150400"], "

相關推薦

Jsoncpp解析中國地區編碼JSON資料

一.中國地區編碼JSON資料 { "086":["中國","0"], "110000":["北京","086"], "110100":["北京市","110000"], "110101":["東城區","110100"], "11010

使用 fastjson 解析巢狀的 json 資料

假設現在有這樣一個 JSONObject { "data": { "is_admin": false, "app_id": 10, "user"

Java解析POST提交的json資料工具類

工具類用於解析通過網路傳輸json資料的引數 import java.io.IOException; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import jav

後臺解析rest服務的json資料

public List<String> getInitJsonDataForVD(String index, String type, String url, String layerName, int begin, int end, String sqlW

Android利用Gson庫解析複雜結構的JSON資料

最近在應用Face++進行人臉識別開發時,經常需要解析Face++返回的結構複雜的JSON資料,於是便決定應用Google開發的Gson庫來減輕工作量。 首先給大家看一個比較複雜的JSON資料: {"face":[{"attribute":{"age":{"

關於Gson解析Okhttp返回的json資料遇到的問題

這兩天來用Gson解析Okhttp遇到了個問題,原因是執行之前Log了一次 Log.i(TAG, "onResponse: "+response.body().string()); 然後又在Gson中呼叫了一次 Authdata authdata=gson.fromJ

安卓筆記-如何解析伺服器返回的Json資料

第一種方式解析伺服器端傳過來的Json陣列private List<CarInformation> jsonAnalytic(String result) { List<CarInformation> list=new ArrayList<

以QQ音樂為例子 解析公共介面的json資料

根據獲得歌手的json資料的url json資料部分截圖 根據上面連結裡獲得資料,取出歌手mid,然後再根據下面的url獲得歌曲列表 json資料部分截圖 下面是呼叫的詳細程式碼,其中的HTTPUtil.sendGet方法是傳送http請求的

Android 解析後臺返回為Json資料的簡單例子!!!

大家好,今天給大家分享下Android解析Json的例子,我這裡自己安裝了Tomcat,讓自己電腦充當下伺服器,最重要的是,返回結果自己可以隨便修改。 首先看下Json的定義,以及它和XML的比較: JSON的定義: 一種輕量級的資料交換格式,具有良好的可讀和便於快速編寫的

js解析與序列化json資料

一、前言:JSON物件有兩個方法:stringify()和parse()。二、介紹:在最簡單的情況下,這兩個方法分別用於把JavaScript物件序列化為JSON字串和把JSON字串解析為原生JavaScript。1、瀏覽器支援的轉換方式(Firefox,chrome,ope

使用jsoncpp解析JSON資料

上節《JSON資料格式》中我們講到了JSON的資料格式和一些應用的地方,接著上面的說下去,jsoncpp和boost.property_tree都可以解析JSON檔案,我們先將jsoncpp如何解析。1.jsoncpp是什麼?2. 編譯jsoncppjsoncpp檔案中提供了vs71的工程檔案以及makere

JSON資料編碼解碼技術

1.客戶端JSON物件和字串之間的轉換和引用(JavaScript): 從官網下載:json.js,放在/js目錄下 裡面提供了一些JAVASCRIPT函式實現 JSON Object 和Json Text之間的相互轉換。 它裡面雖然程式碼眾多,但是供外界呼叫的也只有兩個函式――一個編碼

c語言建立和解析json資料

之前一篇有說到使用lincurl庫獲取網頁資料,那麼問題來了,當我們獲取到的資料大多是json的格式,應該怎麼解析出我們需要的欄位呢?下面我們使用json-glib庫來對json資料進行建立和解析。 #include<json-glib/json-glib.h> #include

利用js-xlsx.js外掛實現Excel檔案匯入並解析Excel資料json資料格式

<!--本文轉載於網路,有太多一樣的文章,不知道原作者是哪位了,就不註明出處了。這裡記載下來,用於自己的學習借鑑--><!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8">

ajax中解析json資料的方式

eval();  //此方法不推薦 JSON.parse();  //推薦方法 一、兩種方法的區別 我們先初始化一個json格式的物件:   var jsonDate = '{ "name":"周星馳","age":23 }'   var

Gson解析json資料

簡介: Json資料是類似xml型別的資料轉化格式但是它的傳輸速率遠遠高於xml的解析速率。 這裡簡單的對用gson解析json格式的資料,為什麼說是簡單的介紹呢,因為博主有更簡單的解析方式後期會進行推出或者掃描頭像進 行私聊(公眾號)。 進行整合:  這裡按照a

Koa2學習系列08-解析JSON——讓 Koa2 支援響應 JSON 資料

JSON 資料 我顛倒了整個世界,只為擺正你的倒影。   前面的文章中,我們已經完成了專案中常見的問題,比如 路由請求、結構分層、檢視渲染、靜態資源等。 那麼,JSON 呢?JSON 格式資料的傳輸,已經深入到了我們的碼裡行間,脫離了

C++ Jsoncpp 解析json字串

使用方法 下載原始碼解壓之後得到jsoncpp-src-0.5.0資料夾,我們只需要jsoncpp的標頭檔案和cpp檔案,其中jsonscpp的標頭檔案位於jsoncpp-src-0.5.0\include\json,jsoncpp的cpp檔案位於jsoncpp-src-0.5.0\sr

json資料解析轉文字方法

需要用到LitJSON.dll JsonMapper using LitJson; using System; public class Person { // C# 3.0 auto-implemented properties public string Na

在8位微控制器上實現JSON資料的簡單解析(微控制器解析JSON

https://blog.csdn.net/PZ0605/article/details/56017141 由於在一些低配的微控制器上面不能直接使用C提供的系統庫,專案中又需要解析伺服器返回的JSON資料,以下程式碼可以簡單的解析出JSON資料中的key: // //  main.