Solutions
Multiplatform
Server-side
Data science
Android
Docs
Community
Teach
Play
Playground
Examples
Koans
toggle menu
kotlinx-serialization
1.7.3
common
switch theme
search in API
kotlinx-serialization-json
/
kotlinx.serialization.json
/
jsonPrimitive
json
Primitive
val
JsonElement
.
jsonPrimitive
:
JsonPrimitive
(
source
)
Convenience method to get current element as
JsonPrimitive
Throws
Illegal
Argument
Exception
if current element is not a
JsonPrimitive