title: Convert an FeedResponse<Class> into List<Class> in DocumentDB
body: <p>I'm trying to convert a FeedResponse into List but failing to serialize the string as it throws an error</p>
  
  <blockquote>
    <p>Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[Lutran.Api.Models.Infinity]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
    To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
    Path 'token', line 1, position 9.</p>
  </blockquote>
  
  <p>I have used the logic for pagination using the this <a href="http://www.kevinkuszyk.com/2016/08/19/paging-through-query-results-in-azure-documentdb/" rel="nofollow noreferrer">link</a> and getting the data when returning the entire output object but when im trying to convert it fails.Tried using an ienumerable object but it shows type conversion error.Used a dynamic object but cannot extract ResponseContinuation value from it.</p>
  
  <p>Using Newton Soft to convert the json(deserialize the string)</p>
  
  <pre><code>var query = client.CreateDocumentQuery&lt;Document&gt;(collection, options).AsDocumentQuery();
  
  if (query.HasMoreResults)
  {
       var result = await query.ExecuteNextAsync&lt;LeadDataView&gt;();
  
       objLeadDataView.ResponseContinuation = result.ResponseContinuation;
       objLeadDataView.InfinityDataView = JsonConvert.DeserializeObject&lt;List&lt;Infinity&gt;&gt;(result.ToString());
       response = objLeadDataView;
  }
  </code></pre>