is there a utility method that converts json to a ...
# serialization
c
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 }
                }
            }
d
Yeah pretty much.
Any
is too hard.
c
actually i only need string or list of string