Solutions
Multiplatform
Server-side
Data science
Android
Docs
Community
Teach
Play
Playground
Examples
Koans
toggle menu
kotlinx-serialization
1.7.2
jvm
switch theme
search in API
kotlinx-serialization-hocon
/
kotlinx.serialization.hocon
/
HoconBuilder
/
encodeDefaults
encode
Defaults
var
encodeDefaults
:
Boolean
(
source
)
Specifies whether default values of Kotlin properties should be encoded.
false
by default.