api

http4k / org.http4k.format / Moshi

Moshi

object Moshi : ConfigurableMoshi (source)

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

Inherited Functions

Name Summary
asA open fun <T : Any> asA(input: String, target: KClass<T>): T
fun <T : Any> asA(s: String): T
asJsonString open fun asJsonString(input: Any): String
fun <T : Any> asJsonString(t: T, c: KClass<T>): String

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T