Friday, January 7th, 2011

Json.NET 4.0

Category: .NET, JSON

Per James Newton, the latest Json.NET release targets .NET 4. Json.NET 4.0 comes with a Windows Phone specific dll, compiled using Windows Phone tools. A .NET 4 feature employed is the dynamic keyword, which allows variables and members to be statically typed as dynamic.  Json.NET 4.0 adds support for dynamic keywords in a couple of areas.

The first and less visible of the two is in the JsonSerializer. Because there is no static list of fields or properties for a dynamic type the serializer interrogates the value for its members prior to serializing and deserializing. The end result is serializing should Just Work for any type that implements IDynamicMetaObjectProvider.

Posted by jvaughan at 4:37 pm
Comment here

+++--
3.8 rating from 28 votes

Comments Here »

Comments feed TrackBack URI

Leave a comment

You must be logged in to post a comment.