[Solved] How do I manipulate JSONArray from PHP to Android


Your Reponse is in JSONArray and you trying to parse in JSONObject

try this to Parse your JSON

 try {

        JSONArray jsonArray = new JSONArray("response");
        for (int i = 0; i < jsonArray.length(); i++) {
            JSONObject object = jsonArray.getJSONObject(i);
            String name = object.getString("name");
            String number = object.getString("number");
            String entity = object.getString("entity");

        }

    } catch (JSONException e) {
        e.printStackTrace();
    }

solved How do I manipulate JSONArray from PHP to Android