var data = JSON.parse(value),
	connections = [];

data.forEach(function (connection) {
	if (connection.type === 'conn_stats') {
		connections.push({
			'{#NAME}': connection.id,
			'{#METRIC}': connection.metric
		});
	}
});

return JSON.stringify(connections);