NestedTypes icon indicating copy to clipboard operation
NestedTypes copied to clipboard

Model toJSON : false setting

Open gaperton opened this issue 10 years ago • 0 comments

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 

gaperton avatar Oct 29 '15 17:10 gaperton