no need to call toJSON if not serializing
Merge pull request #90 from ronen/isTransient

no need to call toJSON if not serializing