loop@ for ((key, value) in jsonEvent.getObject("properties").content) {
when (value) {
is JsonArray -> {
}
is JsonPrimitive -> {
value.booleanOrNull?.let {
event.properties[key] = it
return/break??
}
}
}
}
b
basher
12/10/2019, 5:08 PM
i think you can do
continue@loop
k
Kris Wong
12/10/2019, 5:12 PM
nice. I ended up moving the inner code into a function anyway, which made it a non-issue