fix: fence voice turns and playback; add opt-in face context
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package org.json
|
||||
// Serialization-only JVM double; actual Android JSONObject API compiled in normal build.
|
||||
class JSONObject() {
|
||||
constructor(text: String) : this() { error("Parser is outside this double's scope") }
|
||||
private val fields = linkedMapOf<String, Any>()
|
||||
fun put(key: String, value: Any): JSONObject { fields[key] = value; return this }
|
||||
fun opt(key: String): Any? = fields[key]
|
||||
override fun toString(): String = fields.entries.joinToString(",", "{", "}") { (key, value) ->
|
||||
"\"$key\":" + if (value is String) "\"$value\"" else value.toString()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user