diff --git a/src/guidellm/benchmark/output.py b/src/guidellm/benchmark/output.py index da868106..9302af84 100644 --- a/src/guidellm/benchmark/output.py +++ b/src/guidellm/benchmark/output.py @@ -144,10 +144,9 @@ def save_json(self, path: Union[str, Path]) -> Path: ) model_dict = self.model_dump() - model_json = json.dumps(model_dict) - with path.open("w") as file: - file.write(model_json) + with path.open("w", encoding="utf-8") as file: + json.dump(model_dict, file, ensure_ascii=False, indent=4) return path