JSON轉爲泛型對象

JSON轉爲泛型對象   google 下邊這個例子引用 com.google.gson  的jar包spa Response<TradePrecreateResponse> response2 = new Gson().fromJson(response, new TypeToken<Response<TradePrecreateResponse>>() {}.getType());
相關文章
相關標籤/搜索