I have a List where OcrImageLocation contain List and String s3_id;
I just wanted to convert list to map which contain s3_id as key and image_location as value using java 8
public class PageLocationInfo { @JsonProperty("page_index") private String page_index; @JsonProperty("location") private String location; @JsonProperty("image_location") private String image_location; } public class OcrImageLocation { private List<PageLocationInfo> page_info; @JsonProperty("s3_id") private String s3_id; }
Map<String, List<String>>?