I am passing a arraylist from jsp to javascript.
How to access the elements of arraylist in javascript

jsp code:
<%out.print(arraylist)%>

javascript

var http = createRequestObject();
var reponse=http.responseText