extractedContent

val JsonElement.extractedContent: Any?(source)

Extracts the content of a JsonElement to a type that can be used in Kotlin.

Return

  • Map<String, JsonElement> if the JsonElement is a JsonObject

  • List<Any> if the JsonElement is a JsonArray

  • String, Boolean, Int, Long, Float, Double if the JsonElement is a JsonPrimitive

  • null if the JsonElement is not a JsonObject, JsonArray or JsonPrimitive