public ArrayList convertJsonToJsonObject(){ ArrayList mylist = new ArrayList (); mylist.add(\"abc\"); mylist.add(
JSONArray jsArray = new JSONArray(mylist);
Or
Gson gson = new Gson(); String jsonArray = gson.toJson(mylist);
Get java-json.jar and Gson.jar here