forEach

inline fun <T> <Error class: unknown class>.forEach(transform: (<Error class: unknown class>, Int) -> T = { json, i -> getJsonObjFromArray(json, i) }, action: (T) -> Unit)

Usage:

jsonArray.forEach<String> { obj -> doSomething(obj) }

Optionally, you can specify a transform function to manually convert the object to type T.

Since

0.46.0