diff --git a/slic/utils/jsonext.py b/slic/utils/jsonext.py index 77f26e0ff..af6613e06 100644 --- a/slic/utils/jsonext.py +++ b/slic/utils/jsonext.py @@ -14,6 +14,8 @@ class ExtendedJSONEncoder(json.JSONEncoder): return {"real": obj.real, "imag": obj.imag} elif isinstance(obj, Path): return str(obj) + elif isinstance(obj, set): + return sorted(obj) return super().default(obj)