def to_json(self):
        """Returns a JSON dict representation of the error.

        Returns:
            a JSON dict
        """
        return {
            "reason": self.reason,
            "error_message": self.error_message,
            "path": self.path,
            "custom": self.custom,
        }
Returns a JSON dict representation of the error.

        Returns:
            a JSON dict
        
fiftyone/operators/executor.py