Losing milliseconds from timestamp when deserializing to object using JSON.net
<p>If I deserialize a timestamp contained in json to an object it loses it's millisecond precision.</p>

<pre><code>var json = "{\"timestamp\":\"2016-06-16T16:27:36.808Z\"}";
var dict = JsonConvert.DeserializeObject&lt;Dictionary&lt;string, object&gt;&gt;(json);
Console.WriteLine(dict["timestamp"]);
</code></pre>

<p>Output:</p>

<pre><code>16/06/2016 16:27:36
</code></pre>

<p>This happens even if I convert the object to a DateTime.</p>

<pre><code>var obj = dict["timestamp"];
var timestamp = DateTime.Parse(obj.ToString());
Console.WriteLine(timestamp.ToString("yyyy/MM/dd HH:mm:ss.ffff"));
</code></pre>

<p>Output:</p>

<pre><code>2016/06/16 16:27:36.0000
</code></pre>