流转String
val out=connect.getInputStream()
val str = out.bufferedReader().readText()
网络请求
val result = URL("https://lhl-012.github.io/").readText()
Kotlin使用Gson
inline fun <reified T> Gson.fromJson(json: String) = this.fromJson<T>(json, object : TypeToken<T>() {}.type)
val list = Gson().fromJson<List<SortResult>>(result)