I need to manage a groovy list object in my javascript function. I have a groovy block into a javascript function. I tried with this:
var obj = ${mediaObjectInstanceList as grails.converters.JSON}[index];
and this:
var obj = ${mediaObjectInstanceList.get(index)};
but both are wrong. In the second I would specify the "index" int javascript variable out of the groovy block.