JSON Parsing to ListView Android

前端 未结 3 819
栀梦
栀梦 2021-01-25 20:02

I have a problem to parsing from JSON to Listview in Android. This is an example of data from JSON :

[{
    \"area\": \"Kebon Jeruk\",
    \"city\": \"Jakarta\"         


        
3条回答
  •  北海茫月
    2021-01-25 20:25

    Remaining on your own

    try {
            ArrayList list = new ArrayList<>();
            JSONArray array = new JSONArray(url);
            for (int i = 0; i 

提交回复
热议问题