1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| public class ImgRelationshipVO implements Serializable { private static final long serialVersionUID = 137036203772910249L; private Long pkRelationship; private String imgUrl; private Integer idType; private Integer imgType; private String expandType; private Integer sort; } Map<String, List<ImgRelationshipVO>> m = new HashMap<>(10);
String imgInfo = JSONObject.toJSONString(m);
Map<String, List<ImgRelationshipVO>> map = JSONObject.parseObject(imgInfo,new TypeReference<Map<String, List<ImgRelationshipVO>>>() {},Feature.OrderedField);
|