I want to convert HashMap to json array my code is as follow:
Map map = new HashMap(); map.put(
This is the Simplest Method.
Just use
JSONArray jarray = new JSONArray(hashmapobject.toString);