class Json : JSONObject
DSL-Style JSONObject builder
Json(init: Json.() -> Unit) Json()
DSL-Style JSONObject builder |
infix fun <T> String.to(value: T): Unit |
fun JSONObject.getJSONBoolean(name: String, def: Boolean = false): Boolean
get Boolean from JSONObject |
|
fun JSONObject.getJSONDouble(name: String, def: Double = 0.toDouble()): Double
get Double from JSONObject |
|
fun JSONObject.getJSONInt(name: String, def: Int = 0): Int
get Int from JSONObject |
|
fun JSONObject.getJSONLong(name: String, def: Long = 0.toLong()): Long
get Long from JSONObject |
|
fun JSONObject.getJSONString(name: String, def: String = ""): String
get String from JSONObject |