Run Configuration Json
JSON codec for RunConfiguration.
Wraps the standard kotlinx-serialization-json serializer with settings appropriate for run configuration documents:
prettyPrint = true— human-readable, reviewable outputencodeDefaults = true— optional fields (e.g. TracingConfig) always appear in the output, making JSON files self-documenting and round-trip stable regardless of which defaults change in future versionsallowSpecialFloatingPointValues = true— required because ksl.controls.ControlData bounds and ksl.controls.experiments.ExperimentRunParameters.lengthOfReplication can be±Infinity
These settings mirror those used by ksl.simulation.ModelDescriptor.toJson.
Functions
Deserialises a RunConfiguration from a JSON string produced by encode.
Serialises config to a pretty-printed JSON string.