天天看點

fastJSON JSON字元串 轉成對象(嵌套對象)

responseProduct:是Json字元串

new TypeReference<ResponseDTO<List<ProductDTO>>>(){}

這樣就能轉換成對應對象了!!