toKpaElement

fun JsonElement.toKpaElement(): KpaElement(source)

Wraps this JsonElement in the appropriate JsonElementAdapter.

JsonNull is a subtype of JsonPrimitive, so the is JsonPrimitive branch catches it.

Return

A JsonElementAdapter wrapping this element.