Is there any way to convert a normal Java array or ArrayList to a Json Array in Android to pass the JSON object to a webservice?
ArrayList
This is the correct syntax:
String arlist1 [] = { "value1`", "value2", "value3" }; JSONArray jsonArray1 = new JSONArray(arlist1);