Anyone knows how to populate this JSON in a dropdown basically the country-id and :
data: {
"1000": {
"country-id": 1000,
"name1": {
"name": "Afghanistan",
},
},
"4000": {
"country-id": 4000,
"name1": {
"name": "Albania",
}
}
Your json is broken and many json parser would complain about it.
I’ll use Json.Net for parsing.