From 4c30fcfae44ee3b5a99672d99820f1d1c0cb0231 Mon Sep 17 00:00:00 2001 From: Lars Artmann Date: Mon, 13 Dec 2021 10:36:16 +0100 Subject: [PATCH] Fixed a naming bug in Json kdocs (#1794) parseJsonElement doesn't exist. It needs to be parseToJsonElement --- formats/json/commonMain/src/kotlinx/serialization/json/Json.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/json/commonMain/src/kotlinx/serialization/json/Json.kt b/formats/json/commonMain/src/kotlinx/serialization/json/Json.kt index 0371d2d9cb..3cdcf109e6 100644 --- a/formats/json/commonMain/src/kotlinx/serialization/json/Json.kt +++ b/formats/json/commonMain/src/kotlinx/serialization/json/Json.kt @@ -44,7 +44,7 @@ import kotlin.native.concurrent.* * val deserializedFromTree: DataHolder = json.decodeFromJsonElement(jsonTree) * * // Deserialize from string to JSON tree, JSON-specific - * val deserializedToTree: JsonElement = json.parseJsonElement(stringOutput) + * val deserializedToTree: JsonElement = json.parseToJsonElement(stringOutput) * ``` * * Json instance also exposes its [configuration] that can be used in custom serializers