json array to list convert 썸네일형 리스트형 Java conver t JsonArray to List public static List jsonArrayToObjectList(String json, Class target) throws IOException { ObjectMapper mapper = new ObjectMapper(); CollectionType listType = mapper.getTypeFactory() .constructCollectionType(ArrayList.class, target); List ts = mapper.readValue(json, listType); log.debug("TargetClass: {}", ts.get(0).getClass().getName()); return ts; } //TargetClass class Target {} //sample json arr.. 더보기 이전 1 다음