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

        Returns:
            a JSON dict
        """
        return {
            "invalid": self.invalid,
            "errors": [e.to_json() for e in self.errors],
        }
Returns a JSON dict representation of the context.

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