天天看点

fastJSON JSON字符串 转成对象(嵌套对象)

responseProduct:是Json字符串

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

这样就能转换成对应对象了!!