getJsonReal

fun getJsonReal(value: JsonElement): Any?

Get a real value or instance from any KotlinX JsonElement.

Return

Detokenized instance from input value if input value represents a token string, direct conversion of input value into a Kotlin/JVM primitive or container otherwise.

Parameters

value

JsonElement to make into a real instance.

Sources

jvm source
Link copied to clipboard