A groovy script that results in an array or collection of objects. It will work as long the elements in the result can be converted to JSON.