parseToJsonElement

fun parseToJsonElement(string: String): JsonElement

Deserializes the given JSON string into a corresponding JsonElement representation.

Throws

if the given JSON string is malformed and cannot be deserialized