var ha_data = JSON.parse(value),
	result = [];

if (ha_data.response.result.group['peer-info']) {
	for (var link in ha_data.response.result.group['peer-info']) {
		if (/^conn-ha\d+(-backup)?$/.test(link)){
			result.push({'{#HALINK}': link});
		}
	}
}

return JSON.stringify(result);