KondorJson
class KondorJson(val defaultContentType: ContentType = APPLICATION_JSON, compactJsonStyle: JsonStyle = JsonStyle.compactWithNulls, prettyJsonStyle: JsonStyle = JsonStyle.prettyWithNulls, init: KondorJson.InitContext.() -> Unit = {}) : AutoMarshallingJson<JsonNode>
Constructors
Link copied to clipboard
constructor(defaultContentType: ContentType = APPLICATION_JSON, compactJsonStyle: JsonStyle = JsonStyle.compactWithNulls, prettyJsonStyle: JsonStyle = JsonStyle.prettyWithNulls, init: KondorJson.InitContext.() -> Unit = {})
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> Body.Companion.auto(description: String? = null, contentNegotiation: ContentNegotiation = ContentNegotiation.None, contentType: ContentType = defaultContentType): BiDiBodyLensSpec<T>
Link copied to clipboard
inline fun <T : Any> autoBody(description: String? = null, contentNegotiation: ContentNegotiation = ContentNegotiation.None, contentType: ContentType = defaultContentType): BiDiBodyLensSpec<T>
fun <T : Any> autoBody(target: KClass<T>, description: String? = null, contentNegotiation: ContentNegotiation = ContentNegotiation.None, contentType: ContentType = defaultContentType): BiDiBodyLensSpec<T>
Link copied to clipboard
open fun body(description: String?, contentNegotiation: ContentNegotiation): BiDiBodyLensSpec<JsonNode>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun Body.Companion.json(description: String?, contentNegotiation: ContentNegotiation): BiDiBodyLensSpec<JsonNode>
Convenience function to read an object as JSON from the message body.
Convenience function to write the object as JSON to the message body and set the content type.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard