Consider using [pluck](http://underscorejs.org/#pluck) instead. I think something like this would work

```javascript
var data = {ids: _.pluck(options.collection.models, 'id')};
```