What I did was iterate over the ember-data data models, serialize them, save them in a json object that meets the server requirements, and fulfill the send request.
var identifiedResponse = [] this.store.filter(key, function (record) { return !!record.get('name') }).then(function(resp) { identifiedResponse.push(item.serialize()) }) jQuery.ajax({ url: url, type: "POST", data: identifiedResponse, contentType: "application/json", dataType: 'json', xhrFields: { withCredentials: true } })
Jaime source share