Package-level declarations

Types

Link copied to clipboard
data class IgnoreKey(val key: String)

Indicates to deserializers to ignore field/key

Link copied to clipboard
class JsonDeserializer(payload: ByteArray)

Provides a deserializer for JSON documents

Link copied to clipboard
Link copied to clipboard
data class JsonSerialName(val name: String)

Specifies a name that a field is encoded into for Json elements.

Link copied to clipboard

Interface for deserializing JSON documents as a stream of tokens

Link copied to clipboard

Interface for serialization. Specific formats should implement this interface according to their own requirements. Currently only aws.smithy.kotlin.runtime.serde.json.JsonSerializer implements this interface.

Link copied to clipboard
sealed class JsonToken

Raw tokens produced when reading a JSON document as a stream

Inherited properties

Link copied to clipboard
val <Error class: unknown class>.serialName: String

Provides the serialized name of the field.

Functions

Link copied to clipboard
Link copied to clipboard

Creates a JsonStreamWriter instance to write JSON

Link copied to clipboard
inline fun <TExpected> requireToken(token: JsonToken)

Require that the given token be of type TExpected or else throw an exception

Inherited functions

Link copied to clipboard

Return the next token and require that it be of type TExpected or else throw an exception