diff --git a/VectoCore/VectoCore/Models/Simulation/Impl/SimulatorFactory/SimulatorFactory.cs b/VectoCore/VectoCore/Models/Simulation/Impl/SimulatorFactory/SimulatorFactory.cs index 9ee76616a7223e4f70e29e4af23ea15f9a2c5539..5d04db58d4d3f1fe1951caf7043827c057b46704 100644 --- a/VectoCore/VectoCore/Models/Simulation/Impl/SimulatorFactory/SimulatorFactory.cs +++ b/VectoCore/VectoCore/Models/Simulation/Impl/SimulatorFactory/SimulatorFactory.cs @@ -205,10 +205,12 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl.SimulatorFactory // TODO: MQ 20200410 - Remove for official release! if (SerializeVectoRunData) { - File.WriteAllText( + var jsonSerializerSettings = new JsonSerializerSettings(); + jsonSerializerSettings.Converters.Add(new Newtonsoft.Json.Converters.StringEnumConverter()); + File.WriteAllText( Path.Combine( (ReportWriter as FileOutputWriter)?.BasePath ?? "", $"{data.JobName}_{data.Cycle.Name}{data.ModFileSuffix}.json"), - JsonConvert.SerializeObject(data, Formatting.Indented)); + JsonConvert.SerializeObject(data, Formatting.Indented, jsonSerializerSettings)); } data.JobNumber = JobNumber; data.RunNumber = current;