var result = [];
var alarms = JSON.parse(value);

alarms.forEach(function(alarm) {

 result.push({
'{#ALARM_DESCRIPTION}': alarm.AlarmDescription !== null ? alarm.AlarmDescription : 'None' ,
'{#ALARM_NAME}': alarm.AlarmName,
'{#ALARM_PERIOD}': alarm.Period,
'{#METRIC_NAME}': alarm.MetricName
  });
});

return JSON.stringify(result);