Thiago Nerys03/03/2020, 3:02 PM
I looked around a lot, couldn't find a way to make this code block simpler. Would like to do something similar to Groovy, which allows me to call just
fun <http://java.io|java.io>.InputStream.extractSummary(): String = ((JsonSlurper().parse(this) as Map<String, Any>)["fields"] as Map<String, Any>)["summary"] as String
. Any ideas?
ribesg03/03/2020, 3:09 PM
Thiago Nerys03/03/2020, 3:11 PM
mbonnin03/03/2020, 3:37 PM
so that it becomes