I am reading a json of the given form and storing it as a POJO.
{
 "details" : [ 
   {
    "version" : 1, 
    "time" : "2021-01-01T00:00:00.000Z",
   }
 ]
}
My POJO class looks like :
public class Details
{
    private int version;
    private String time;
    
    public Integer getVersion(){
        return version;
    }
    public void setVersion(int version){
        this.version = version;
    }
    public String getTime(){
        return time;
    }
    public void setTime(String time){
        this.time = time;
    }
}
The time is being read as a string. How do I deserialize it to DateTime using Jackson?
 
    