Thanks Mark, yes that's working great.
Although I do have a problem with building the object. The actual code is a bit more complex and I build the object's string through various lines of SSJS (in a loop):
thisout+="'dayString':'" + I18n.toString(ndt.toJavaDate(),"dd") + "', ";
thisout+="'timeString':'" + ve.getColumnValues()[5] + "', ";
thisout+="'titleString':'" +ve.getColumnValues()[2] + "', ";
thisout+="'iconString':'" + ve.getColumnValues()[6] + "'";
Assigning this string as an object to the array is problematic though as well, can you give me a clue as to how to do this.
I've actually got round it by building an object:
thisObj.dayString = I18n.toString(ndt.toJavaDate(),"dd");
etc.
Maybe this is the best way to do it anyway, but would appreciate your thoughts on that