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

result = certificates.response.data.map(function (certificate) {
	return {
		'{#CERTNAME}': certificate['@name'],
		'{#EXPIRES}': certificate['expiry-epoch'] ? certificate['expiry-epoch'] : 'Never'
	}
});

return JSON.stringify(result);