Add a unique index to each result object

Please note that this feature is automatically added to your API result as of May 2015. If you would like to exclude the index, you can use modify results to remove it. We have added that code below.

function transform(data) { 
  data.results.collection1 =
data.results.collection1.map(function(item) {
delete item.index;
return item;
});
return data;
};
Powered by Zendesk