import com.alibaba.fastjson.JSON; List respList = JSON.parseArray(JSON.toJSONString(list), ListingCertResponse.class);
ConstrUnitDetailResponse response = JSON.parseObject(JSON.toJSONString(entity),ConstrUnitDetailResponse.class);
[Java的写法]之利用JSON做对象转换
import com.alibaba.fastjson.JSON; List respList = JSON.parseArray(JSON.toJSONString(list), ListingCertResponse.class);
ConstrUnitDetailResponse response = JSON.parseObject(JSON.toJSONString(entity),ConstrUnitDetailResponse.class);