Ember normalize response `undefined` fields

I’m extending the JSONSerializer in order to fit my server response which looks like this:

{
  "result": {
    "items": [
      {
        "id": "...",
        "title": "...",
        ...
      },
      ...
    ],
      "total": number,
      "...": "..."
  }   
}

therefore I have overridden normalizeResponse() method:

normalizeResponse: function(store, primaryModelClass, payload, id, requestType) {
        payload = payload.result.items;

        return this._super(store, primaryModelClass, payload, id, requestType)
    },

after this my model data fields are all undefined. What I’m doing wrong?

Your code looks OK. Would you be able to create a JSBin reproducing the issue?

Yes, it works now. Some magic happened during the night, int he morning when I started the server it just worked. I’m not sure if restarting the server fixed the problem but it could be. Thank you for support!