title: Facing Issue with Timespan in rest service serialization
body: <p>I am using REST service to get the data from the Db.
  In my class, I am having the property "UploadTime" of  datatype TimeSpan?.
  The time span is calculated based on the difference between dates and in the response,I ma getting response as :</p>
  
  <pre><code>ArrayOfUploadUI xmlns="http://schemas.datacontract.org/2004/07/NMS.ApplicationService.HIM.Objects" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
   &lt;UploadUI&gt;
    &lt;UID&gt;1&lt;/UID&gt; 
    &lt;DateCompleted&gt;2015-01-08T10:46:25.25&lt;/DateCompleted&gt; 
    &lt;DateNotified&gt;2015-01-07T10:46:25.25&lt;/DateNotified&gt; 
    &lt;DateDictationStartTime i:nil="true" /&gt; 
    &lt;DateDictationEndTime i:nil="true" /&gt; 
    &lt;UploadTime&gt;P1D&lt;/UploadTime&gt; 
    &lt;ExistsOnBackend&gt;false&lt;/ExistsOnBackend&gt; 
    &lt;/UploadUI&gt;
    &lt;/ArrayOfUploadUI&gt;
  </code></pre>
  
  <p>.
  I am getting the following exception while trying to get the data:</p>
  
  <pre><code>using (HttpResponseMessage response = await _HttpClient(session).GetAsync(apiUrl))
              {
                  if (response.IsSuccessStatusCode)
                      result = await response.Content.ReadAsAsync&lt;T&gt;();
                  else
                      await _HandleInvalidResponseAsync(response);
              }
  </code></pre>
  
  <p>I am getting issue at the  "response.Content.ReadAsAsync();".</p>
  
  <p>Error is:</p>
  
  <pre><code>Error converting value "P1D" to type 'System.Nullable`1[System.TimeSpan]'. Path '[0].UploadTime', line 1, position 518.
     at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType).
  </code></pre>
  
  <p>I googled and I came to know that WCF serilaizing the "timeSpan"datatype  from "1:0:0:00" to "P1D".</p>
  
  <p>My issue is how to deserialize this on the response level.</p>