How to convert a JSON string to a Map<String, Set<String>> with Jackson JSON
Try this:
JavaType setType = mapper.getTypeFactory().constructCollectionType(Set.class, CustomClass.class);JavaType stringType = mapper.getTypeFactory().constructType(String.class);JavaType mapType = mapper.getTypeFactory().constructMapType(Map.class, stringType, setType);String outputJson = mapper.readValue(json, mapType)