Skip to content

Commit

Permalink
Fixed a naming bug in Json kdocs (#1794)
Browse files Browse the repository at this point in the history
parseJsonElement doesn't exist.
It needs to be parseToJsonElement
  • Loading branch information
LarsArtmann committed Dec 13, 2021
1 parent 471f4bb commit 4c30fcf
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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
Expand Down

0 comments on commit 4c30fcf

Please sign in to comment.