然后使用Gson去解析对象: gson.fromJson(json, type);. 1. 在Kotlin中: 第一种方式: val turnsType = object : TypeToken<List<Turns>>() {}.type val turns = Gson().
確定! 回上一頁