I have two files, file1.js
and file2.jsp
. file2.jsp is printing a jsonArray in the following way:
List<HashMap<String,String>> orderDetailsList1= null;
JSONArray jsonArray = new JSONArray(orderDetailsList1);
out.println(jsonArray);
I want to use this jsonArray
in file1.js
. How do I do that?