Jackson deserialize JSON with timestamp field : <p>I have such string:</p>

<pre><code>{
   "debug":"false", 
   "switchTime":"2017-04-12 17:04:42.896026"
}
</code></pre>

<p>I'm trying to get object in such approach:</p>

<pre><code>new ObjectMapper().readValue(string, MyObject.class);
</code></pre>

<p>And MyObject class:</p>

<pre><code>class MyObject {
    private Boolean debug;
    private Timestamp switchTime;
    //...getters, setters, constructors
}
</code></pre>

<p>I have such exception:</p>

<pre><code>com.fasterxml.jackson.databind.exc.InvalidFormatException: 
Can not deserialize value of type java.sql.Timestamp from String
"2017-04-12 17:04:42.896026": not a valid representation (error:
Failed to parse Date value '2017-04-12 17:04:42.896026': 
Can not parse date "2017-04-12 17:04:42.896026Z": while it seems 
to fit format 'yyyy-MM-dd'T'HH:mm:ss.SSS'Z'', 
parsing fails (leniency? null))  at [Source:   
{"debug":"false", "switchTime":"2017-04-12 17:04:42.896026"}; 
</code></pre>

<p>I don't understand why...If i use in debug mode Timestamp.valueOf() with "2017-04-12 17:04:42.896026" - i have success</p>
