How to clear a JSONArray
android, java, json
Solution
jsonArray = new JSONArray(new ArrayList<String>());
Problem
How to clear the data from a JSONArray there is nothing like: ``` jsonArray.clear(); ``` not even: ``` jsonArray.remove(index); ``` which was suggested here: How do I remove a specific element from a JSONArray? Thank you