I\'m using Rails, backbone.js (learning this now). Let\'s say you have two models, Car and Engine.
var Car = Backbone.Model.extend({ initialize: function(
I would suggest to override toJSON on the backbone model.
toJSON: function(){ json = {car : this.attributes}; return _.extend(json, {engine_attributes: this.get("engine").toJSON()); }
toJSON is called within the sync method just before sending data to the backend.