JsonTranscoder

class JsonTranscoder(serializer: JsonSerializer) : Transcoder

Converts the value to and from JSON by delegating to a JsonSerializer

Constructors

Link copied to clipboard
fun JsonTranscoder(serializer: JsonSerializer)

Functions

Link copied to clipboard
open override fun <T> decode(content: Content, type: TypeRef<T>): T

Decodes the wire representation into the entity based on the data format.

Link copied to clipboard
open override fun <T> doEncode(input: T, type: TypeRef<T>): Content

Encodes the given input into the wire representation based on the data format.

Link copied to clipboard
open fun <T> encode(input: T, type: TypeRef<T>): Content