keras/src/legacy/preprocessing/text.py/Tokenizer/to_json
class Tokenizer:    def to_json(self, **kwargs):
        config = self.get_config()
        tokenizer_config = {
            "class_name": self.__class__.__name__,
            "config": config,
        }
        return json.dumps(tokenizer_config, **kwargs)