Houston we have a problem Houston we have a problem - 1 month ago 7
Android Question

Convert Json Array to normal Java Array

Is there a way to convert JSON Array to normal Java Array for android ListView data binding?

Answer
ArrayList<String> list = new ArrayList<String>();     
JSONArray jsonArray = (JSONArray)jsonObject; 
if (jsonArray != null) { 
   int len = jsonArray.length();
   for (int i=0;i<len;i++){ 
    list.add(jsonArray.get(i).toString());
   } 
}