Skip to content

Commit 174be44

Browse files
Fix incorrect documentation of encodeDefaults (#1108)
Default value was changed in #1084
1 parent 7e526a8 commit 174be44

File tree

1 file changed

+1
-1
lines changed
  • formats/json/commonMain/src/kotlinx/serialization/json

1 file changed

+1
-1
lines changed

formats/json/commonMain/src/kotlinx/serialization/json/Json.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public inline fun <reified T> Json.decodeFromJsonElement(json: JsonElement): T =
150150
public class JsonBuilder internal constructor(conf: JsonConf) {
151151
/**
152152
* Specifies whether default values of Kotlin properties should be encoded.
153-
* `true` by default.
153+
* `false` by default.
154154
*/
155155
public var encodeDefaults: Boolean = conf.encodeDefaults
156156

0 commit comments

Comments
 (0)