create jsonobject from kotlin 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'
}