Browse by Tags
DefaultSettings If you have used Json.NET then you will be familiar with JsonSerializerSettings. This class has been an extremely successful at providing an simple way for developers to customize Json.NET. With Json.NET’s increasing popularity and its use by more third party frameworks, a problem I have noticed is a developer has to customize serializer settings in multiple places. If you want your...
This release of Json.NET ships with many performance improvements, and is over 30% faster serializing and deserializing JSON compared to Json.NET 4.5. Json.NET extends its performance lead over DataContractJsonSerializer and continues to be significantly faster than JavaScriptSerializer which is used by ASP.NET MVC. Compiled Expressions on Windows 8 and Windows Phone 8 An additional performance improvement...
New and Updated Libraries In Json.NET 5.0 there are a bunch of library version changes: Added .NET 4.5 library Added portable library targeting .NET 4.5 + WP8 + Win8 Removed the Silverlight library . Removed the Windows Phone library Upgrading library versions allows Json.NET to support new .NET features such as dynamic and async across more platforms. A baseline portable class library still supports...
Serialization Tracing The major new feature this release is serialization tracing. Using the ITraceWriter interface you can log and debug what is happening inside the Json.NET serializer when serializing and deserializing JSON. Staff staff = new Staff (); staff.Name = "Arnie Admin" ; staff.Roles = new List < string > { "Administrator" }; staff.StartDate = DateTime .Now; ...
Json.NET's major new feature this release is the portable class library assembly is available over NuGet. This is made possible by NuGet 2.1 supporting portable class libraries. Read more about NuGet 2.1 here . Case insensitive JObject GetValue and TryGetValue To simplify getting property values without worrying about the property name's case a couple of helper methods have been added to JObject...
More Posts
Next page »