1JObject o1 = JObject.Parse(File.ReadAllText(@"c:\videogames.json"));
2
3// read JSON directly from a file
4using (StreamReader file = File.OpenText(@"c:\videogames.json"))
5using (JsonTextReader reader = new JsonTextReader(file))
6{
7 JObject o2 = (JObject)JToken.ReadFrom(reader);
8}