var name,
    output = [];

JSON.parse(value).forEach(function (v) {
    if (name = v.name.match(/^vault_(rollback_attempt|route_rollback)_(.+?)_count$/)) {
        output.push(
            {
                '{#MOUNTPOINT}': name[2].replace(/_/g, '/'),
                '{#PATTERN_C}': 'vault_' + name[1] + '_' + name[2] + '_count',
                '{#PATTERN_Q}': 'vault_' + name[1] + '_' + name[2]
            }
        );
    }
});

return JSON.stringify(output);