toJSON and replacer support