title: Do I need to deserialize the query result from DocumentDb?
body: <p>I have a simple POCO for person object that looks like this:</p>
  
  <pre><code>public class Person
  {
     public int PersonId {get; set;}
     public string FirstName {get; set;}
     public string MiddleName {get; set;}
     public string LastName {get; set;}
     public char Gender {get; set;}
  }
  </code></pre>
  
  <p>I have the following code that queries the People collection in my DocumentDb database.</p>
  
  <pre><code>private async static Task&lt;List&lt;Person&gt;&gt; GetPeopleList(string colSelfLink)
  {
     dynamic doc = client.CreateDocumentQuery&lt;Document&gt;(colSelfLink, "SELECT p.PersonId, p.FirstName, p.MiddleName, p.LastName, p.Gender FROM People p").AsEnumerable().FirstOrDefault();
     List&lt;Person&gt; peopleList = new List&lt;Person&gt;();
     if (doc != null)
     {
        peopleList = doc;
     }
     return peopleList;
  }
  </code></pre>
  
  <p>When I run this code, I'm getting the following error:</p>
  
  <blockquote>
    <p>Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type     'System.Collections.Generic.List`1[MyApp.Person]' 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 'PersonId', line 1, position
        48.</p>
  </blockquote>
  
  <p>How do I convert the JSON object coming from my query to a Person object? In my MVC app, the model binder does a pretty good job but this is running in a separate class library. How should I approach converting this JSON object?</p>