var lookup = {},
    result = [];

JSON.parse(value).forEach(function (item) {
    var http_method = item.labels.method;
    if (!(lookup[http_method])) {
        lookup[http_method] = 1;
        result.push({ "{#HTTP_METHOD}": http_method });
    }
})

return JSON.stringify(result);