Pass scope options to toJSON.