feat!: handle Set at JSON serialization to string
[e-mobility-charging-stations-simulator.git] / src / performance / PerformanceStatistics.ts
index bf333dfd4c9c1449334bd979933b7d868d0e0c02..59d697d1ec76559d36c175f68256da4ebe5d9d18 100644 (file)
@@ -11,6 +11,7 @@ import {
   ConfigurationSection,
   type IncomingRequestCommand,
   type LogConfiguration,
+  MapStringifyFormat,
   MessageType,
   type RequestCommand,
   type Statistics,
@@ -27,7 +28,7 @@ import {
   extractTimeSeriesValues,
   formatDurationSeconds,
   generateUUID,
-  JSONStringifyWithMapSupport,
+  JSONStringify,
   logger,
   logPrefix,
   max,
@@ -214,7 +215,7 @@ export class PerformanceStatistics {
     logger.info(this.logPrefix(), {
       ...this.statistics,
       statisticsData: JSON.parse(
-        JSONStringifyWithMapSupport(this.statistics.statisticsData)
+        JSONStringify(this.statistics.statisticsData, undefined, MapStringifyFormat.object)
       ) as Map<string | RequestCommand | IncomingRequestCommand, StatisticsData>
     })
   }