DecodeSequenceMode

enum DecodeSequenceMode : Enum<DecodeSequenceMode>

Description of decodeToSequence's JSON input shape.

The sequence represents a stream of objects parsed one by one; DecodeSequenceMode defines a separator between these objects. Typically, these objects are not separated by meaningful characters (WHITESPACE_SEPARATED), or the whole stream is a large array of objects separated with commas (ARRAY_WRAPPED).

Entries

AUTO_DETECT
Link copied to clipboard

Declares that parser itself should select between WHITESPACE_SEPARATED and ARRAY_WRAPPED modes. The selection is performed by looking on the first meaningful character of the stream.

ARRAY_WRAPPED
Link copied to clipboard

Declares that objects in the input stream are wrapped in the JSON array. Each individual object in the array is parsed lazily when it is requested from the resulting sequence.

WHITESPACE_SEPARATED
Link copied to clipboard

Declares that objects in the input stream are separated by whitespace characters.

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int