Map<String, Class> map = new HashMap<>();
map.put("FaceInfoList", FaceInfo.class);
map.put("LibMatInfoList", LibMatInfo.class);
map.put("FeatureList", Feature.class);
map.put("PanoImage", PanoImage.class);
map.put("FaceImage", FaceImage.class);
map.put("FaceArea", FaceArea.class);
map.put("MatchPersonInfo", MatchPersonInfo.class);
JsonRootBean jsonRootBean = (JsonRootBean) net.sf.json. JSONObject.toBean(JSONObject.fromObject(accessRecord),JsonRootBean.class,map);
嵌套JSON转实体类
最新推荐文章于 2023-11-20 11:58:03 发布