is there a utility method that converts json to a Map<String, Any>, or do I have to serialize to a map<String, JsonElement> and then do something like this?
Copy code
it.mapValues { (_, value) ->
when (value) {
is JsonPrimitive -> value.content
JsonNull -> null
is JsonObject -> TODO()
is JsonArray -> value.map { it.jsonPrimitive.content }
}
}