How to clear a JSONArray
jsonArray = new JSONArray(new ArrayList<String>());
this is not a perfect answer but you can do like this,
jsonArray=new jsonArray("[{}]");
EDIT
As per suggestion in comment, you can also use below code:
jsonArray=new jsonArray();