title: Linq transformation help needed
body: <p>I've got a List of this object:</p>
  
  <pre><code>public class WebinarAttendeesList {
      public int wa_id { get; set; }
      public int PID { get; set; }
      public string FullName { get; set; }
      public string Email { get; set; }
      public string JoinTime { get; set; }
      public string TimeInSession { get; set; }
      public string LeaveTime { get; set; }
      public int FirstPollCount { get; set; }
      public int SecondPollCount { get; set; }
      public int AttendedWebinar { get; set; }
      public int Makeup { get; set; }
      public string Comments { get; set; }
      public string RegistrantKey { get; set; }
      public string webinarKey { get; set; }
  }
  </code></pre>
  
  <p>I'm using this Linq code:</p>
  
  <pre><code>var webinars = new
  {
      Webinars = r.GroupBy(x =&gt; new { x.PID, x.FullName }).
      Select(y =&gt; new
      {
          PID = y.Key.PID,
          FullName = y.Key.FullName,
          AffReceived = 0,
          Attendances = y.Select(z =&gt; new
          {
              WebinarKey = z.webinarKey,
              RegistrantKey = z.RegistrantKey,
              TimeInSession = z.TimeInSession,
              FirstPollCount = z.FirstPollCount,
              SecondPollCount = z.SecondPollCount,
              AttendedWebinar = z.AttendedWebinar
          })
      })
  };
  string json = JsonConvert.SerializeObject(webinars);
  </code></pre>
  
  <p>to transform the List to JSON. But, I think I'd rather 
  have it transformed into a <code>List&lt;FinalWebinarAttendeesList&gt;</code> (see below 
  definition). The JSON that it produces looks correct and passes lint.</p>
  
  <p>When I try to do this:</p>
  
  <pre><code>List&lt;FinalWebinarAttendeesList&gt; fl = JsonConvert.DeserializeObject&lt;List&lt;FinalWebinarAttendeesList&gt;&gt;(json);
  </code></pre>
  
  <p>I get an error: </p>
  
  <pre><code>Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type
  'System.Collections.Generic.List`1[WebinarProject.Models.FinalWebinarAttendeesList]' 
  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&lt;T&gt;) 
  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 
  'Webinars', line 1, position 12.
  </code></pre>
  
  <p>How can I either transform this directly into the object I want, or be able to deserialize it into the object I want?</p>
  
  <p><strong>FinalWebinarAttendeesList definition:</strong></p>
  
  <pre><code>public class FinalWebinarAttendeesList
  {
      public FinalWebinar Webinars {get; set; }
  }
  public class FinalWebinar
  {
      public int PtID { get; set; }
      public string FullName { get; set; }
      public int AffReceived  { get; set; }
      public List&lt;FinalWebinarAttendee&gt; Attendances { get; set; }
  
  }
  public class FinalWebinarAttendee
  {
      public string RegistrantKey { get; set; }
      public string TimeInSession { get; set; }
      public int FirstPollCount { get; set; }
      public int SecondPollCount { get; set; }
      public int AttendedWebinar { get; set; }
  
  }
  </code></pre>