Package kotlinx.serialization.hocon

HOCON serialization format implementation for converting Kotlin classes from and to Lightbend config.

Types

Hocon
Link copied to clipboard
sealed class Hocon : SerialFormat

Allows deserialization of Config object from popular Lightbend/config library into Kotlin objects.

HoconBuilder
Link copied to clipboard
class HoconBuilder

Builder of the Hocon instance provided by Hocon factory function.

Functions

decodeFromConfig
Link copied to clipboard
inline fun <T> Hocon.decodeFromConfig(config: Config): T

Decodes the given config into a value of type T using a deserialize retrieved from reified type parameter.

Hocon
Link copied to clipboard
fun Hocon(from: Hocon = Hocon, builderAction: HoconBuilder.() -> Unit): Hocon

Creates an instance of Hocon configured from the optionally given Hocon instance and adjusted with builderAction.