We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
encodeDefaults
1 parent 7e526a8 commit 174be44Copy full SHA for 174be44
formats/json/commonMain/src/kotlinx/serialization/json/Json.kt
@@ -150,7 +150,7 @@ public inline fun <reified T> Json.decodeFromJsonElement(json: JsonElement): T =
150
public class JsonBuilder internal constructor(conf: JsonConf) {
151
/**
152
* Specifies whether default values of Kotlin properties should be encoded.
153
- * `true` by default.
+ * `false` by default.
154
*/
155
public var encodeDefaults: Boolean = conf.encodeDefaults
156
0 commit comments