title: C# serialize json from Twitter without data member
body: <p>I'm working on my own small Twitter application in C#.
  I've managed to serialize the json data from <a href="https://api.twitter.com/1/followers/ids.json?cursor=-1&amp;screen_name=" rel="nofollow">https://api.twitter.com/1/followers/ids.json?cursor=-1&amp;screen_name=</a>
  It returns something like this:</p>
  
  <pre><code>{ "ids" : [ 401295021,
    506271294,
    14405250,
    25873220
  ],
  "next_cursor" : 0,
  "next_cursor_str" : "0",
  "previous_cursor" : 0,
  "previous_cursor_str" : "0"
  }
  </code></pre>
  
  <p>Using this class I can serialize it:</p>
  
  <pre><code>    [DataContract]
      public class TwitterFollowers
      {
          [DataMember(Name = "ids")]
          public IList&lt;int&gt; AccountIDs { get; set; }
      }
  </code></pre>
  
  <p>Now I want to get the screen names of the followers so I use this url:
  <a href="http://api.twitter.com/1/users/lookup.json?user_id=" rel="nofollow">http://api.twitter.com/1/users/lookup.json?user_id=</a></p>
  
  <p>This json looks like this:</p>
  
  <pre><code>[ { "contributors_enabled" : false,
  "created_at" : "Wed Apr 16 06:30:52 +0000 2008",
  "default_profile" : false,
  "default_profile_image" : false,
  "description" : "",
  "utc_offset" : -25200,
  "verified" : false
  },
  { "contributors_enabled" : false,
  "created_at" : "Tue Mar 04 12:31:57 +0000 2008",
  "default_profile" : true,
  "default_profile_image" : false,
  "description" : "",
  "utc_offset" : 3600,
  "verified" : false
  }
  ]
  </code></pre>
  
  <p>As you can see the array starts right away, without naming it.
  How should my class look like to serialize this?</p>
  
  <p>I've tried this, but that doesn't work:</p>
  
  <pre><code>    [DataContract]
      public class TwitterProfiles
      {
          [DataMember(Name = "")]
          public IList&lt;TwitterProfile&gt; Profiles { get; set; }
      }
  
      [DataContract]
      public class TwitterProfile
      {
          [DataMember(Name = "lang")]
          public string Language { get; set; }
  
          [DataMember(Name = "location")]
          public string Location { get; set; }
  
          [DataMember(Name = "name")]
          public string Name { get; set; }
  
          [DataMember(Name = "screen_name")]
          public string ScreenName { get; set; }
  
          [DataMember(Name = "url")]
          public string URL { get; set; }
      }
  </code></pre>