var lookup = {},
    result = [];

JSON.parse(value).forEach(function (item) {
    var result_api = item.labels.result;
    if (!(lookup[result])) {
        lookup[result_api] = 1;
        result.push({ '{#RESULT}': result_api });
    }
});
return JSON.stringify(result);