I am declaring in my model the following:
import DS from 'ember-data'; export default DS.Model.extend({ name: DS.attr('string'), age: DS.attr('number') });
My server is returning the following json:
{"name":"ali","age":33}
When i extend the JSONserializer that expects this form must I override any method like extractArray since I am calling findAll in the route as follows:
import Ember from 'ember'; export default Ember.Route.extend({ model: function(){ return this.store.findAll('person'); } });