Convert javascript array of objects to various formats.