As Ryzhman said, you can pass it to the list, but only the object (JSONArray in the case of ryzhman) extends the ArrayList class. You do not need a whole method for this. You can simply:
List<String> listOfStrings = new JSONArray(data);
Or if you are using IBM JSONArray (com.ibm.json.java.JSONArray):
List<String> listOfStrings = (JSONArray) jsonObject.get("key");
source share