try {
    var data = JSON.parse(value);
}
catch (error) {
    throw 'Failed to parse JSON of Arista sensor discovery.';
}
var fields = ['{#SNMPINDEX}','{#SENSOR_TYPE}','{#SENSOR_INFO}','{#SENSOR_PRECISION}','{#THRESHOLD_LO_WARN}','{#THRESHOLD_LO_CRIT}','{#THRESHOLD_HI_WARN}','{#THRESHOLD_HI_CRIT}'];
data.forEach(function (element) {
    fields.forEach(function (field) {
        element[field] = element[field] || '';
    });
});
return JSON.stringify(data);