toPrimitives

fun JsonElement.toPrimitives(): Any?

Recursively convert a JsonElement to its equivalent primitive kotlin values.


fun JsonArray.toPrimitives(): List<*>

Convert all elements of an array to their equivalent kotlin primitives.