I\'m using ember & ember-data to try and consume a json feed from the server. Here is my code:
App = Ember.Application.create();
DS.RESTAdapter.configur
You have 2 options
UPDATE: write your own serializer UPDATE 2: get rid of unused functions
https://github.com/emberjs/data/blob/master/packages/ember-data/lib/serializers/json_serializer.js#L196
You can inherit from the DS.RESTSerializer
and change extract
with this code
extract: function(loader, json, type, record) {
var root = 'data';
if (json[root]) {
if (record) { loader.updateId(record, json[root]); }
this.extractRecordRepresentation(loader, type, json[root]);
}
}
This assumes that the content of request will always be under the data
key of your json.