Klaxon
To implement custom JSON configuration, create your own object singleton. Extra mappings can be added before done() is called.
Functions
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>
Link copied to clipboard
Link copied to clipboard
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.