Open gaperton opened 9 years ago
Sometimes only a few attributes needs to be serialized. Usually happens in models representing UI state. Thus, model spec becomes too clumsy.
Support following Model.toJSON option:
toJSON : false, // mark all attributes except id as toJSON( false ) by default
Sometimes only a few attributes needs to be serialized. Usually happens in models representing UI state. Thus, model spec becomes too clumsy.
Support following Model.toJSON option: