The Ember.js REST Adapter expects the JSON to be returned as:
{
\"person\": {
\"first_name\": \"Barack\",
\"last_name\": \"Obama\",
I tried to add root to json. This works for me:
App.Adapter = DS.RESTAdapter.extend({
findAll: function(store, type, since) {
var root, adapter;
var plural; // Insert this line
root = this.rootForType(type);
adapter = this;
plural = this.pluralize(root); // Insert this line
return this.ajax(
this.buildURL(root),
"GET",
{
data: this.sinceQuery(since)
}).then(function(json) {
eval ( "json = {" + plural + " : json }" ); // Insert this line
adapter.didFindAll(store, type, json);
}).then(null, DS.rejectionHandler);
}
});