tjb
val data = String(result.get()).toJson() if (data is JsonArray<*> && data.first() is JsonObject) { // do something }