JacksonSerializer

class JacksonSerializer(jackson: ObjectMapper = jacksonObjectMapper(), block: ObjectMapper.() -> Unit = {}) : JsonSerializer

Deprecated

Please use ContentNegotiation plugin and its converters: https://ktor.io/docs/migrating-2.html#serialization-client

Constructors

Link copied to clipboard
fun JacksonSerializer(jackson: ObjectMapper = jacksonObjectMapper(), block: ObjectMapper.() -> Unit = {})

Functions

Link copied to clipboard
open override fun read(type: TypeInfo, body: Input): Any
Link copied to clipboard
open fun write(data: Any): OutgoingContent
open override fun write(data: Any, contentType: ContentType): OutgoingContent