I\'m trying to get the data from one app to another via RESTful WS and it works, but I cannot use this data since I cannot cast it... WS returns a List of objects like this:
import:
import com.fasterxml.jackson.databind.ObjectMapper;
object:
private ObjectMapper mapper = new ObjectMapper();
examples:
PremierDriverInfoVariationDTO premierDriverInfoDTO =
mapper.convertValue(json, PremierDriverInfoVariationDTO.class);
log.debug("premierDriverInfoDTO : {}", premierDriverInfoDTO);
or
Map map = mapper.convertValue(json, Map.class);
log.debug("result : {}", map);
assertFalse(map.get("eligiblePDJob"));