diff options
author | Lars Artmann <github@d1rk.art> | 2021-12-13 10:36:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-13 12:36:16 +0300 |
commit | 4c30fcfae44ee3b5a99672d99820f1d1c0cb0231 (patch) | |
tree | 675b830dbef08036e5c760e5876aa05136ad9095 | |
parent | 471f4bbfa28d0dd1d4af869dc992d7604374e4ac (diff) | |
download | kotlinx.serialization-4c30fcfae44ee3b5a99672d99820f1d1c0cb0231.tar.gz |
Fixed a naming bug in Json kdocs (#1794)
parseJsonElement doesn't exist.
It needs to be parseToJsonElement
-rw-r--r-- | formats/json/commonMain/src/kotlinx/serialization/json/Json.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/json/commonMain/src/kotlinx/serialization/json/Json.kt b/formats/json/commonMain/src/kotlinx/serialization/json/Json.kt index 0371d2d9..3cdcf109 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<DataHolder>(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 |