i have a feeling this is a pretty simple question, but i'm having issues with a map reduce script that creates a CSV file of a big dump of item data. since i'm not doing any sort of mapping or reducing, i'm doing all of my work using a for loop in a saved search in the getInputData() step and outputting an object that contains all my items. then, in the summarize step, i'm parse through that object and writing to the file.
The object data is there and properly formatted in the CSV, but the problem is that my object keys are showing up in the columns of the CSV
Script snippet within for loop:
itemKey = i.id
itemData.description = i.getValue({name: 'storedescription', join: 'parent'}) ? i.getValue({name: 'storedescription', join: 'parent'}).replace(/(\r\n|\n|\r|\s+|\t| )/gm,' ') : '';
itemData.link = i.getValue({name: 'urlcomponent', join: 'parent'}) ? domain + '/' + i.getValue({name: 'urlcomponent', join: 'parent'}) : '';
itemData.title = i.getValue({name: 'storedisplayname', join: 'parent'}) ? i.getValue({name: 'storedisplayname', join: 'parent'}) : '';
allItems[itemKey] = itemData;