我的JSON結果是我將如何排序的json結果,我是因爲我的JSON結果格式的困惑
`"{
"24":"Andaman and Nicobar Islands",
"31":"Andhra Pradesh",
"8":"Arunachal Pradesh",
"32":"Assam",
"33":"Bihar",
"28":"Chandigarh",
"30":"Chhattisgarh",
"20":"Dadra and Nagar Haveli",
"27":"Daman and Diu",
"36":"Delhi",
"39":"Goa",
"23":"Gujarat",
"18":"Haryana",
"38":"Himachal Pradesh",
"1":"Jammu & Kashmir",
"5":"Jammu and Kashmir",
"21":"Jharkhand",
"35":"Karnataka",
"7":"Kerala",
"3":"Lakshadweep",
"40":"Madhya Pradesh",
"4":"Maharashtra",
"26":"Manipur",
"16":"Meghalaya",
"37":"Mizoram",
"14":"Nagaland",
"29":"National Capital Region (India)",
"19":"Odisha",
"2":"Orissa",
"34":"Puducherry",
"6":"Punjab",
"12":"Rajasthan",
"15":"Sikkim",
"25":"Tamil Nadu",
"17":"TamilNadu",
"9":"Tripura",
"22":"Uttar Pradesh",
"10":"Uttarakhand",
"11":"West Bengal"
}"`
我發現JSON許多文章排序,但他們有不同的格式,我想這就是爲什麼它不工作我嘗試以下 url_1
我是JSON和jquery的新手,請客氣。
http://stackoverflow.com/help/how-to-ask - 尤其是預期/所需VS實際輸出,以及你想這個到代碼運行也很有幫助 –