Package-level declarations

Types

Link copied to clipboard
open class ConfigurableJackson(val mapper: ObjectMapper, val defaultContentType: ContentType = APPLICATION_JSON) : AutoMarshallingJson<JsonNode>
Link copied to clipboard

To implement custom JSON configuration, create your own object singleton. Extra mappings can be added before done() is called.

Functions

Link copied to clipboard
fun KotlinModule.asConfigurable(): AutoMappingConfiguration<ObjectMapper>
fun <T : ObjectMapper> KotlinModule.asConfigurable(mapper: T): AutoMappingConfiguration<T>
Link copied to clipboard
inline operator fun <T : Any, R : HttpMessage> ConfigurableJackson.invoke(item: T): (R) -> R
inline operator fun <T : Any> ConfigurableJackson.invoke(msg: HttpMessage): T
Link copied to clipboard
fun <T : JsonNodeDataContainer> Body.Companion.json(fn: (JsonNode) -> T, description: String? = null, contentNegotiation: ContentNegotiation = ContentNegotiation.None): BiDiBodyLensSpec<T>

Custom lens to extract and inject Data4k DataContainer types from JSON bodies

Link copied to clipboard

Prevent the unmarshalling of unknown values4k types.

Link copied to clipboard
inline fun <T : Any> ObjectMapper.read(): (String) -> T
Link copied to clipboard
inline fun <T : Any> ObjectMapper.write(): (T) -> String