字串轉 JsonArray. 我新建一個Context的擴展函數,取名叫handleJsonStr. 可以看到使用了gson.fromJson(jsonStr, JsonArray::class.java),需要兩個參數。
確定! 回上一頁