Package-level declarations

Types

Link copied to clipboard
class JacksonCodec<T : Any>(val name: String, val mapper: ObjectMapper, val sourceClass: KClass<T>) : Codec<T, ByteArray>

ByteArrayCodec implementation that delegates JSON processing to a Jackson ObjectMapper.

Properties

Link copied to clipboard
val defaultObjectMapper: ObjectMapper

Default ObjectMapper configured with Jackson Kotlin module support.

Functions

Link copied to clipboard
inline fun <T : Any> jacksonCodec(name: String, mapper: ObjectMapper? = null): JacksonCodec<T>

Builds a JacksonCodec for the requested type T.

Link copied to clipboard
inline fun <T : Any> jsonBody(name: String, mapper: ObjectMapper? = null): JsonBody<T>

Builds a JSON Body definition using the provided Jackson codec.