android how to convert json array to string array

后端 未结 5 1683
时光取名叫无心
时光取名叫无心 2020-12-09 21:22

I have an app where I fetch data from server(json) in the form of array & by using the index i used in my app, like below.

JSONObject topobj = new JSONOb         


        
5条回答
  •  生来不讨喜
    2020-12-09 21:36

    This I think is what you searching for

    ArrayList list = new ArrayList();     
    JSONArray jsonArray = (JSONArray)jsonObject; 
    if (jsonArray != null) { 
       for (int i=0;i

提交回复
热议问题