You will need to use Iterator to loop through the keys to get their values.
Here, in the Kotlin implementation, you will realize that the way I got the string uses optString() , which expects a String value or a nullable value.
val keys = jsonObject.keys() while (keys.hasNext()) { val key = keys.next() val value = targetJson.optString(key) }
Delacrix Morgan Feb 04 '19 at 1:20 2019-02-04 01:20
source share