List<GoodsImages> list = new ArrayList<GoodsImages>();pendingGoods.setImages(JSON.toJSONString(list));List<Map<String, Object>> mapList = JSON.parseObject(pendingGoods.getImages(), List.class); List<GoodsImages> gImages = new ArrayList<>();
for (Map<String, Object> map : mapList) {
goodsImages = JSON.parseObject(JSON.toJSONString(map), GoodsImages.class);
gImages.add(goodsImages);
}