format

val format: Json(source)

The canonical JSON configuration for the animation trace format.

  • classDiscriminator = "event" names the type-tag field, so each line reads like {"event":"DelayStarted", ...}.

  • encodeDefaults = true writes defaulted fields (e.g. z = 0.0, suspensionName = null) so the renderer never has to know the Kotlin defaults to interpret a line.

  • prettyPrint = false keeps each event on a single line, as required by the JSON Lines (.atf) format.