You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected the last line to return '{"a":"model"}'.
I know toJSON on iterables is an alias to toJS and calls toJS recursively which is why the Model's toJSON isn't called at all. Perhaps toJSON should instead call toJSON recursively which gives us a more familiar way to override the serialization behavior?
The text was updated successfully, but these errors were encountered:
I expected the last line to return
'{"a":"model"}'
.I know
toJSON
on iterables is an alias totoJS
and callstoJS
recursively which is why theModel
'stoJSON
isn't called at all. PerhapstoJSON
should instead calltoJSON
recursively which gives us a more familiar way to override the serialization behavior?The text was updated successfully, but these errors were encountered: