I am trying to parse a CSV and serialize it using the Jackson library. I have tried several methods but can't get to ignore the extra columns in the CSV which are not defined in the POJO. The CSV comes in realtime from a server.
Requirements:
I have already tried @JsonIgnoreProperties(true) and also tried to use DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES but nothing seems to work properly.
POJO:
public class student{CSV:
STUDENT_NAME,ID,STANDARD,DOB