def sanitize_json(self, input_string: str) -> str:
        """
        Sanitize all the values in a JSON string.
        
        Args:
            input_string (str): The JSON string to sanitize.
            
        Returns:
            str: The sanitized JSON string.
        """

        data = json.loads(input_string)
        sanitized_data = {self.sanitize_string(k): self.sanitize_string(str(v)) for k, v in data.items()}
        return json.dumps(sanitized_data)

        Sanitize all the values in a JSON string.
        
        Args:
            input_string (str): The JSON string to sanitize.
            
        Returns:
            str: The sanitized JSON string.
        
src/autogpt_plugins/api_tools/api_tools.py