kotlin jsonobject to class code example
Example 1: kotlin jsonobject from string
val data = JSONObject("""{"name":"test name", "age":25}""")
Example 2: kotlin jsonobject to class
dependencies {
implementation 'com.beust:klaxon:5.5'
}
val data = JSONObject("""{"name":"test name", "age":25}""")
dependencies {
implementation 'com.beust:klaxon:5.5'
}