code: function(type, hash, prop) {
          var json = {};
          for (var key in hash) {
            // This is already normalized
            if (key === 'relationships') {
              json[key] = hash[key];
              continue;
            }
  
            if (key === 'attributes') {
              for (var attributeKey in hash[key]) {
                var camelizedKey = Ember.String.camelize(attributeKey);
                json[camelizedKey] = hash[key][attributeKey];
              }
              continue;
            }
            var camelizedKey = Ember.String.camelize(key);
            json[camelizedKey] = hash[key];
          }
  
          return this._super(type, json, prop);
        }
docs: Flatten links