org.json.JSONException: Value {"Belarus":["Minsk","Mogilev","Brest","Vitebsk","Dvor-Gomel'","Hrodna","Navapolatsk","Lida","Horki","Borisov","Lyakhovichi","Radoshkovichi","Polatsk","Orsha","Valer'yanovo","Baranovichi","Mazyr","Lyaskavichy","Zhodzina","Zaslawye","Lahoysk","Shklow","Mozyr'","Dzyarzhynsk","Pinsk"],"":[""],"Philippines":["Manila","Ayala","Bayan","Roosevelt","Blumentritt","Cardona","Pasong Tamo","Valenzuela","Caloocan City","Taytay","Quezon City","Las Pinas","Makati City","Marikina City","San Juan","Pasig","Paranaque City","Muntinlupa","Salinas","Poblacion","Roxas City","Puerto Princesa City","Pasay","Caloocan","Buting","Lipa City","Taguig","Baguio City","San Pablo City","San Mateo","Rizal","Dasmarinas","Sucat","Sampaloc","Marilag","Angeles City","Mandaluyong City","Malabon","Rodriguez","Fairview","Angeles City","Davao City","Iligan","Cagayan de Oro","Tagum","Butuan","Mawab","Ozamiz City","Bacoor","Cavite City","Carmona","Imus","Tacurong","Pateros","Dumaguete","Carolinas","San Pedro","General Santos","Malolos","Cebu City","Malate","New Manila","Antipolo","Villanueva","Concepcion","Koronadal","Pandi","West","Lucena City","Balayan","Laguna","Calamba","Subic","Bonifacio","Quezon","Lapu-Lapu City","Tagaytay","San Carlos City","San Jose","Asia","Subic","Libis","Palma Gil","Fernandez","Kalibo","Santos","Vargas","Novaliches","Plaza","San Antonio","Philippine","Rizal","Alabang","Legaspi","Laguna","Summit","Bates","Bagumbayan","Salcedo","Batis","Cubao","Binondo","Balabag","General","Guagua","Liberty","Tandang Sora","Capitol","Naga City","Binangonan","San Francisco","Mabalacat","Pikit","Antipolo","Imus","Tarlac City","Batangas","Calapan","Binan","Cabuyao","Hilongos","Mandaue City","Tanza","Caloocan","Silang","Malabon","Navotas","Angat","Navotas","Bulacan","Laoag","Bocaue","Dagupan","Calasiao","Dingras","Cainta","Iloilo City","Iloilo City","Tagbilaran City","Balanga","Pulilan","Olongapo City","Marilao","San Jose","San Fernando","Plaridel","Baliuag","Cabanatuan City","Bataan","Navotas","San Fernando","Meycauayan","Manila","Kawit","Bacolod City","Angono","Los Banos","Paete","Santa Rosa","Calamba City","Santa Cruz","Pangil","Canlubang","Tayabas","Pagsanjan","Zamboanga City","Talisay City","Mandaue City","Ugong Norte","Luna","Olongapo City","Tanauan","Cabatuan","Pasig","West Triangle","Pias","San Pedro","Dipolog City","Victorias City","Zamboanga City","Subic","Abucay","Samal","Orion","Arayat","Boac","Siniloan","San Agustin","Cotabato City","Veronica","Masbate","Bool","Tacloban City","Danao","Rosario West","Taft","Sulo","Centre","Santo","Pagasinan","Cafe","Leyte","Interior","Pagadian","Molave","Palo","Mamungan","Hagonoy","Paul","Bagong Nayon","Mauban","La Trinidad","Apalit","Mariveles","General Trias","Cabugao","Province of Pangasinan","Urdaneta","Alaminos","Malasiqui","Bay","Balungao","Amadeo","Macabebe","Del Monte","Limay","Calbayog City","Real","Tanay","Kapatagan","Trece Martires City","Lamitan","Bagac","Jagna","Obando","Balagtas","Kidapawan","Pampanga","Naga","Diliman Primero","Baao","Cauayan","Pacita","Central","Rosales","Bulacan","Roque","Silang","La Salette","San Miguel","Baclaran","Marcos","Suyo","Maquiling","Plaridel","Los Martires","Acacia","Minalin","Salle","Agusan Pequeno","Gitagum","Pardo","Gallego","Gloria","Nueva","Upper Bicutan","Wines","Vito","La Union","Poblacion, San Felipe","Lawis","Toledo City","Concepcion","Digos","Cogan","Calinan","Mindanaw","Dagupan","Barbar","Mangaldan","San Fabian","Alcala","Bautista","Aquino","Ilog","Manaoag","Tayug","Luzon","San Miguel","Victory","Sta Cruz","Sultan Kudarat","Magsaysay","Dapitan","Mangrove","Tanauan","Alfonso","Island Park","Maria","Tigbauan","Campus","Valencia","Occidental","Panabo","Munoz East","Aguilar","Fortuna","Matandang Balara","Osmena","Leon","Balamban","Cotabato City","Cavinti","Alitagtag","Trinidad","Lilio","Carlos","Vigan","Domingo","Candon","Norte","Oara","Alaminos","Calaca","Padre Garcia","Bauan","Cagayan","Tuguegarao City","Ilagan","Santiago","Llanera","China","Ramon","Feliciano","Marina","Cruz","Ventura","Tambo","Tejer 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSON.typeMismatch(JSON.java:111) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSONArray.<init>(JSONArray.java:91) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSONArray.<init>(JSONArray.java:103) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.populateCitySpinner(CreateNewTeamActivity.java:66) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.populateSpinners(CreateNewTeamActivity.java:56) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.onCreate(CreateNewTeamActivity.java:50)

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Cannot parse JSON - android

    Stack Overflow | 2 years ago | Muhammad Rehan Qadri
    org.json.JSONException: Value {"Belarus":["Minsk","Mogilev","Brest","Vitebsk","Dvor-Gomel'","Hrodna","Navapolatsk","Lida","Horki","Borisov","Lyakhovichi","Radoshkovichi","Polatsk","Orsha","Valer'yanovo","Baranovichi","Mazyr","Lyaskavichy","Zhodzina","Zaslawye","Lahoysk","Shklow","Mozyr'","Dzyarzhynsk","Pinsk"],"":[""],"Philippines":["Manila","Ayala","Bayan","Roosevelt","Blumentritt","Cardona","Pasong Tamo","Valenzuela","Caloocan City","Taytay","Quezon City","Las Pinas","Makati City","Marikina City","San Juan","Pasig","Paranaque City","Muntinlupa","Salinas","Poblacion","Roxas City","Puerto Princesa City","Pasay","Caloocan","Buting","Lipa City","Taguig","Baguio City","San Pablo City","San Mateo","Rizal","Dasmarinas","Sucat","Sampaloc","Marilag","Angeles City","Mandaluyong City","Malabon","Rodriguez","Fairview","Angeles City","Davao City","Iligan","Cagayan de Oro","Tagum","Butuan","Mawab","Ozamiz City","Bacoor","Cavite City","Carmona","Imus","Tacurong","Pateros","Dumaguete","Carolinas","San Pedro","General Santos","Malolos","Cebu City","Malate","New Manila","Antipolo","Villanueva","Concepcion","Koronadal","Pandi","West","Lucena City","Balayan","Laguna","Calamba","Subic","Bonifacio","Quezon","Lapu-Lapu City","Tagaytay","San Carlos City","San Jose","Asia","Subic","Libis","Palma Gil","Fernandez","Kalibo","Santos","Vargas","Novaliches","Plaza","San Antonio","Philippine","Rizal","Alabang","Legaspi","Laguna","Summit","Bates","Bagumbayan","Salcedo","Batis","Cubao","Binondo","Balabag","General","Guagua","Liberty","Tandang Sora","Capitol","Naga City","Binangonan","San Francisco","Mabalacat","Pikit","Antipolo","Imus","Tarlac City","Batangas","Calapan","Binan","Cabuyao","Hilongos","Mandaue City","Tanza","Caloocan","Silang","Malabon","Navotas","Angat","Navotas","Bulacan","Laoag","Bocaue","Dagupan","Calasiao","Dingras","Cainta","Iloilo City","Iloilo City","Tagbilaran City","Balanga","Pulilan","Olongapo City","Marilao","San Jose","San Fernando","Plaridel","Baliuag","Cabanatuan City","Bataan","Navotas","San Fernando","Meycauayan","Manila","Kawit","Bacolod City","Angono","Los Banos","Paete","Santa Rosa","Calamba City","Santa Cruz","Pangil","Canlubang","Tayabas","Pagsanjan","Zamboanga City","Talisay City","Mandaue City","Ugong Norte","Luna","Olongapo City","Tanauan","Cabatuan","Pasig","West Triangle","Pias","San Pedro","Dipolog City","Victorias City","Zamboanga City","Subic","Abucay","Samal","Orion","Arayat","Boac","Siniloan","San Agustin","Cotabato City","Veronica","Masbate","Bool","Tacloban City","Danao","Rosario West","Taft","Sulo","Centre","Santo","Pagasinan","Cafe","Leyte","Interior","Pagadian","Molave","Palo","Mamungan","Hagonoy","Paul","Bagong Nayon","Mauban","La Trinidad","Apalit","Mariveles","General Trias","Cabugao","Province of Pangasinan","Urdaneta","Alaminos","Malasiqui","Bay","Balungao","Amadeo","Macabebe","Del Monte","Limay","Calbayog City","Real","Tanay","Kapatagan","Trece Martires City","Lamitan","Bagac","Jagna","Obando","Balagtas","Kidapawan","Pampanga","Naga","Diliman Primero","Baao","Cauayan","Pacita","Central","Rosales","Bulacan","Roque","Silang","La Salette","San Miguel","Baclaran","Marcos","Suyo","Maquiling","Plaridel","Los Martires","Acacia","Minalin","Salle","Agusan Pequeno","Gitagum","Pardo","Gallego","Gloria","Nueva","Upper Bicutan","Wines","Vito","La Union","Poblacion, San Felipe","Lawis","Toledo City","Concepcion","Digos","Cogan","Calinan","Mindanaw","Dagupan","Barbar","Mangaldan","San Fabian","Alcala","Bautista","Aquino","Ilog","Manaoag","Tayug","Luzon","San Miguel","Victory","Sta Cruz","Sultan Kudarat","Magsaysay","Dapitan","Mangrove","Tanauan","Alfonso","Island Park","Maria","Tigbauan","Campus","Valencia","Occidental","Panabo","Munoz East","Aguilar","Fortuna","Matandang Balara","Osmena","Leon","Balamban","Cotabato City","Cavinti","Alitagtag","Trinidad","Lilio","Carlos","Vigan","Domingo","Candon","Norte","Oara","Alaminos","Calaca","Padre Garcia","Bauan","Cagayan","Tuguegarao City","Ilagan","Santiago","Llanera","China","Ramon","Feliciano","Marina","Cruz","Ventura","Tambo","Tejer 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSON.typeMismatch(JSON.java:111) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSONArray.<init>(JSONArray.java:91) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSONArray.<init>(JSONArray.java:103) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.populateCitySpinner(CreateNewTeamActivity.java:66) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.populateSpinners(CreateNewTeamActivity.java:56) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.onCreate(CreateNewTeamActivity.java:50)

    Root Cause Analysis

    1. org.json.JSONException

      Value {"Belarus":["Minsk","Mogilev","Brest","Vitebsk","Dvor-Gomel'","Hrodna","Navapolatsk","Lida","Horki","Borisov","Lyakhovichi","Radoshkovichi","Polatsk","Orsha","Valer'yanovo","Baranovichi","Mazyr","Lyaskavichy","Zhodzina","Zaslawye","Lahoysk","Shklow","Mozyr'","Dzyarzhynsk","Pinsk"],"":[""],"Philippines":["Manila","Ayala","Bayan","Roosevelt","Blumentritt","Cardona","Pasong Tamo","Valenzuela","Caloocan City","Taytay","Quezon City","Las Pinas","Makati City","Marikina City","San Juan","Pasig","Paranaque City","Muntinlupa","Salinas","Poblacion","Roxas City","Puerto Princesa City","Pasay","Caloocan","Buting","Lipa City","Taguig","Baguio City","San Pablo City","San Mateo","Rizal","Dasmarinas","Sucat","Sampaloc","Marilag","Angeles City","Mandaluyong City","Malabon","Rodriguez","Fairview","Angeles City","Davao City","Iligan","Cagayan de Oro","Tagum","Butuan","Mawab","Ozamiz City","Bacoor","Cavite City","Carmona","Imus","Tacurong","Pateros","Dumaguete","Carolinas","San Pedro","General Santos","Malolos","Cebu City","Malate","New Manila","Antipolo","Villanueva","Concepcion","Koronadal","Pandi","West","Lucena City","Balayan","Laguna","Calamba","Subic","Bonifacio","Quezon","Lapu-Lapu City","Tagaytay","San Carlos City","San Jose","Asia","Subic","Libis","Palma Gil","Fernandez","Kalibo","Santos","Vargas","Novaliches","Plaza","San Antonio","Philippine","Rizal","Alabang","Legaspi","Laguna","Summit","Bates","Bagumbayan","Salcedo","Batis","Cubao","Binondo","Balabag","General","Guagua","Liberty","Tandang Sora","Capitol","Naga City","Binangonan","San Francisco","Mabalacat","Pikit","Antipolo","Imus","Tarlac City","Batangas","Calapan","Binan","Cabuyao","Hilongos","Mandaue City","Tanza","Caloocan","Silang","Malabon","Navotas","Angat","Navotas","Bulacan","Laoag","Bocaue","Dagupan","Calasiao","Dingras","Cainta","Iloilo City","Iloilo City","Tagbilaran City","Balanga","Pulilan","Olongapo City","Marilao","San Jose","San Fernando","Plaridel","Baliuag","Cabanatuan City","Bataan","Navotas","San Fernando","Meycauayan","Manila","Kawit","Bacolod City","Angono","Los Banos","Paete","Santa Rosa","Calamba City","Santa Cruz","Pangil","Canlubang","Tayabas","Pagsanjan","Zamboanga City","Talisay City","Mandaue City","Ugong Norte","Luna","Olongapo City","Tanauan","Cabatuan","Pasig","West Triangle","Pias","San Pedro","Dipolog City","Victorias City","Zamboanga City","Subic","Abucay","Samal","Orion","Arayat","Boac","Siniloan","San Agustin","Cotabato City","Veronica","Masbate","Bool","Tacloban City","Danao","Rosario West","Taft","Sulo","Centre","Santo","Pagasinan","Cafe","Leyte","Interior","Pagadian","Molave","Palo","Mamungan","Hagonoy","Paul","Bagong Nayon","Mauban","La Trinidad","Apalit","Mariveles","General Trias","Cabugao","Province of Pangasinan","Urdaneta","Alaminos","Malasiqui","Bay","Balungao","Amadeo","Macabebe","Del Monte","Limay","Calbayog City","Real","Tanay","Kapatagan","Trece Martires City","Lamitan","Bagac","Jagna","Obando","Balagtas","Kidapawan","Pampanga","Naga","Diliman Primero","Baao","Cauayan","Pacita","Central","Rosales","Bulacan","Roque","Silang","La Salette","San Miguel","Baclaran","Marcos","Suyo","Maquiling","Plaridel","Los Martires","Acacia","Minalin","Salle","Agusan Pequeno","Gitagum","Pardo","Gallego","Gloria","Nueva","Upper Bicutan","Wines","Vito","La Union","Poblacion, San Felipe","Lawis","Toledo City","Concepcion","Digos","Cogan","Calinan","Mindanaw","Dagupan","Barbar","Mangaldan","San Fabian","Alcala","Bautista","Aquino","Ilog","Manaoag","Tayug","Luzon","San Miguel","Victory","Sta Cruz","Sultan Kudarat","Magsaysay","Dapitan","Mangrove","Tanauan","Alfonso","Island Park","Maria","Tigbauan","Campus","Valencia","Occidental","Panabo","Munoz East","Aguilar","Fortuna","Matandang Balara","Osmena","Leon","Balamban","Cotabato City","Cavinti","Alitagtag","Trinidad","Lilio","Carlos","Vigan","Domingo","Candon","Norte","Oara","Alaminos","Calaca","Padre Garcia","Bauan","Cagayan","Tuguegarao City","Ilagan","Santiago","Llanera","China","Ramon","Feliciano","Marina","Cruz","Ventura","Tambo","Tejer 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSON.typeMismatch(JSON.java:111) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSONArray.<init>(JSONArray.java:91) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSONArray.<init>(JSONArray.java:103) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.populateCitySpinner(CreateNewTeamActivity.java:66) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.populateSpinners(CreateNewTeamActivity.java:56) 02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.onCreate(CreateNewTeamActivity.java:50)

      at android.app.Activity.performCreate()
    2. Android Platform
      TabHost$IntentContentStrategy.getContentView
      1. android.app.Activity.performCreate(Activity.java:5181)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2031)
      4. android.app.ActivityThread.startActivityNow(ActivityThread.java:1908)
      5. android.app.LocalActivityManager.moveToState(LocalActivityManager.java:135)
      6. android.app.LocalActivityManager.startActivity(LocalActivityManager.java:347)
      7. android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:694)
      7 frames