-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

3
  • Use Gson, which helps you for easy conversion Commented Dec 27, 2016 at 8: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. Commented Dec 27, 2016 at 8:52
  • Gson gson=new GsonBuilder().create(); JsonArray myCustomArray = gson.toJsonTree(tag).getAsJsonArray(); Commented Dec 27, 2016 at 8:53

1 Answer 1

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);
Sign up to request clarification or add additional context in comments.

2 Comments

my array doesnt have a name
answer was edited

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.