Pass toJSON params through for replacer.