This project has moved and is read-only. For the latest updates, please go here.

"Serializing Partial JSON Fragments": Problem with the documentation

Mar 24, 2012 at 2:08 AM
Edited Mar 24, 2012 at 2:08 AM

I just started using this .NET library... I followed the documentation, and got to "Serializing Partial JSON Fragments" but encountered an error.

Visual C# 2010 Express Edition is complaining:

'Newtonsoft.Json.Linq.JEnumerable<Newtonsoft.Json.Linq.JToken>' does not contain a definition for 'ToList' and no extension method 'ToList' accepting a first argument of type 'Newtonsoft.Json.Linq.JEnumerable<Newtonsoft.Json.Linq.JToken>' could be found (are you missing a using directive or an assembly reference?

What am I doing wrong?


JObject googleSearch = JObject.Parse(googleSearchText);
// get JSON result objects into a list
IList<JToken> results = googleSearch["responseData"]["results"].Children().ToList();