Open rocboronat opened 7 years ago
Import Gson as com.google.gson.Gson
Example:
import com.github.salomonbrys.kotson.fromJson
import com.google.gson.Gson
class Example {
private val gson = Gson()
fun onMessage(message: String) {
val list1 = gson.fromJson<List<String>>(message) // perfect!
}
}
😢