interface Encoder
source · line 15public
public interface Encoder
A format backend positioned at one value. Select a keyed record, unkeyed sequence, or single scalar container according to the value's representation.
property path
source · line 19public
public val path: String
get: public read-only
The backend-defined diagnostic path of the current value.
function singleValue
source · line 31public
public fun singleValue(): SingleValueEncodingContainer
Selects the scalar or null container at this value.
function keyed
source · line 23public
public fun keyed(): KeyedEncodingContainer
Selects the named-field record container at this value.
function unkeyed
source · line 27public
public fun unkeyed(): UnkeyedEncodingContainer
Selects the ordered sequence container at this value.