tasks/things/assistant.js
function formatjson(pis) {
	return pis.map(function(pi) {
		var newpi = {};
		newpi[pi.tag] = pi.att;
		return newpi;
	});
}
function formatjson(pis) {
	return pis.map(function(pi) {
		var newpi = {};
		newpi[pi.tag] = pi.att;
		return newpi;
	});
}
function formatjson ( pis ) { return pis . map ( function ( pi ) { var newpi = { } ; newpi [ pi . tag ] = pi . att ; return newpi ; } ) ; }
Format processing instructions
for slight improved readability.
@param {Array<Instruction>} pis
@returns {Array<object>}
Format processing instructions for slight improved readability .