SerializationOptions

@Serializable
data class SerializationOptions(val serialization: SerializationOptionsSerialization, val maxDepth: Int? = null, val additionalParameters: JsonObject? = null)

Represents options for serialization. Overrides generatePreview and returnByValue.

Official doc

Constructors

Link copied to clipboard
constructor(serialization: SerializationOptionsSerialization, maxDepth: Int? = null, additionalParameters: JsonObject? = null)

Properties

Link copied to clipboard
val additionalParameters: JsonObject?

Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM serialization via maxNodeDepth: integer and includeShadowTree: "none" | "open" | "all". Values can be only of type string or integer.

Link copied to clipboard

Deep serialization depth. Default is full depth. Respected only in deep serialization mode.

Link copied to clipboard

(undocumented in the protocol definition)