-5

This is the link to my webserivce please check out https://drive.google.com/open?id=0BwCPG2lI_UeCcXlLUGhibTJEdWs

this is image of the android code android code

enter image description here

please help me

Charuක
  • 12,953
  • 5
  • 50
  • 88
pravin maske
  • 72
  • 1
  • 13
  • Use Gson, which helps you for easy conversion – SANAT Dec 27 '16 at 08:48
  • 2
    Please do not post images of code. Images cannot be searched, cannot be copied for testing, and impede accessibility. Instead, include relevant code as [formatted text](http://stackoverflow.com/help/formatting). – Meyer Dec 27 '16 at 08:52
  • Gson gson=new GsonBuilder().create(); JsonArray myCustomArray = gson.toJsonTree(tag).getAsJsonArray(); – pravin maske Dec 27 '16 at 08:53

1 Answers1

0

at first you should send JSONArray Data inside JSONObject then via below codes get and set your list

    public void onResponse(String response) {
            try {
                JSONObject responseJsonObject = new JSONObject(response);

                JSONArray arrayJsonObject = responseJsonObject.getJSONArray("items");
                    for (int i = 0; i < arrayJsonObject.length(); i++) {
                        JSONObject jsonObject = arrayJsonObject.getJSONObject(i);
                        //Or do somthing with Array Datas 
                    }
                }
              }

if your array not have name :

     JSONArray jsonArray = new JSONArray(String_Result);
Saeid
  • 2,261
  • 4
  • 27
  • 59