Solutions
Multiplatform
Server-side
Data science
Android
Docs
Community
Teach
Play
Playground
Examples
Koans
kotlinx-serialization
Toggle table of contents
1.8.1
common
Platform filter
common
Switch theme
Search in API
kotlinx-serialization
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