Solved with this code...
var events = [];
for (var i=0; i < calendarCount; i++) {
events.push({
title: calendarObject[i].title,
start: new Date(calendarObject[i].startDate * 1000),
end: new Date(calendarObject[i].endDate * 1000),
allDay: calendarObject[i].isAllDay,
color: calendarObject[i].color
});
}
and then 'events: events' in the calendar setup