I am using EJS with Node.JS, and am passing a JSON object into it, but need to have access to it as a usable object in the page. I am getting the unexpected token o error from t
try this:
var initData = JSON.parse('<%-JSON.stringify(list)%>');
OR:
var initData = <%-JSON.stringify(list)%>;