Skip to content

Commit 4c30fcf

Browse files
authored
Fixed a naming bug in Json kdocs (#1794)
parseJsonElement doesn't exist. It needs to be parseToJsonElement
1 parent 471f4bb commit 4c30fcf

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
@@ -44,7 +44,7 @@ import kotlin.native.concurrent.*
4444
* val deserializedFromTree: DataHolder = json.decodeFromJsonElement<DataHolder>(jsonTree)
4545
*
4646
* // Deserialize from string to JSON tree, JSON-specific
47-
* val deserializedToTree: JsonElement = json.parseJsonElement(stringOutput)
47+
* val deserializedToTree: JsonElement = json.parseToJsonElement(stringOutput)
4848
* ```
4949
*
5050
* Json instance also exposes its [configuration] that can be used in custom serializers

0 commit comments

Comments
 (0)