貪心推薦系統(tǒng)第三期
集合與JSON互轉(zhuǎn)
//集合轉(zhuǎn)JSONString attachmentsJSON = JSON.toJSONString(vo.getAttachmentList());//JSON轉(zhuǎn)集合List<MessageAttachment> attachmentList = JSONObject.parseArray(attachmentsJSON, MessageAttachment.class);
?
標(biāo)簽:
//集合轉(zhuǎn)JSONString attachmentsJSON = JSON.toJSONString(vo.getAttachmentList());//JSON轉(zhuǎn)集合List<MessageAttachment> attachmentList = JSONObject.parseArray(attachmentsJSON, MessageAttachment.class);
?