I have a List of People Objects added to my ModelMap. A person has a name and a date. I know I can access the list by doing the following in the html part of the JSP
${peopleList}
However I want to loop through this list in the JSP in a JavaScript tag, I have tried the following but I am having no luck, and for testing I have just been doing an alert.
var people = "${peopleList}"
alert(people[0].name);
How can I access these properties in JavaScript.