Jackson deserialize JSON with timestamp field
I think you need to set the expected date/time format using @JsonFormat
annotation as shown below.
class MyObject {
private Boolean debug;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss.SSS")
private Timestamp switchTime;
//...getters, setters, constructors
}
You can also set timezone as @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss.SSS",timezone="PST")