I want to convert HashMap to json array my code is as follow:
Map map = new HashMap(); map.put(
You can use
JSONArray jarray = JSONArray.fromObject(map );