According to this post, it’s much better now:
// pick out one album
JObject jalbum = albums[0] as JObject;
// Copy to a static Album instance
Album album = jalbum.ToObject<Album>();
Documentation: Convert JSON to a Type
More Related Contents:
- How to localize when JSON-serializing?
- replace WCF built-in JavascriptSerializer with Newtonsoft Json.Net json serializer
- What’s the best way to jSON serialize a .NET DataTable in WCF?
- How do I use JSON.NET to deserialize into nested/recursive Dictionary and List?
- How to deserialize an array of values with a fixed schema to a strongly typed data class?
- Detect if deserialized object is missing a field with the JsonConvert class in Json.NET
- Can Json.NET serialize / deserialize to / from a stream?
- Using Json.NET converters to deserialize properties
- What is the correct way to make a custom .NET Exception serializable?
- How to serialize/deserialize a custom collection with additional properties using Json.Net
- Custom Deserialization using Json.NET
- Ensuring json keys are lowercase in .NET
- Does .NET 4 have a built-in JSON serializer/deserializer?
- Json.NET serializing float/double with minimal decimal places, i.e. no redundant “.0”?
- Cannot deserialize JSON array into type – Json.NET
- How to apply indenting serialization only to some properties?
- Ignoring null fields in Json.net
- JSON.NET JsonConvert vs .NET JavaScriptSerializer [closed]
- Get Raw json string in Newtonsoft.Json Library
- How to remove k__BackingField from json when Deserialize
- Deserializing JSON into an object with Json.NET
- JSON serialization of array with polymorphic objects
- Json.net serialize/deserialize derived types?
- C# automatic property deserialization of JSON
- Any way to make DataContractJsonSerializer serialize Dictionaries properly?
- JSonNet boolean serialization
- Json.net rename properties
- Newtonsoft JSON for .net is ignoring jsonproperty tags
- How to serialize a large graph of .NET objects into a SQL Server BLOB without creating a large buffer?
- Why microsoft made JavaScriptSerializer obsolete prior to .net 3.5 SP1 and again active after that?