Click or drag to resize
Json.NETDeserialize a Collection
 

This sample deserializes JSON into a collection.

Sample
Usage
1string json = @"['Starcraft','Halo','Legend of Zelda']";
2
3List<string> videogames = JsonConvert.DeserializeObject<List<string>>(json);
4
5Console.WriteLine(string.Join(", ", videogames.ToArray()));
6// Starcraft, Halo, Legend of Zelda