var temperature = JSON.parse(value);

var result = temperature.map(function (sensor) {
  return {
	'{#NAME}': sensor['name'],
	'{#STATUS}': sensor['status'],
	'{#CLASS}': sensor['class']
  };
});

return JSON.stringify(result);