Tagged with Json.Net

Json.Net vs ServiceStack.Text

This is going to be a verry short comparision of the two Json-serialization frameworks: Json.Net – http://json.codeplex.com ServiceStack.Text – https://github.com/mythz/ServiceStack.Text I have always used Json.Net when dealing with serialization of entities back and forth to Json, but then I stumbled upon this: “Fastest JSON Serializer for .NET released” – http://www.servicestack.net/mythz_blog/?p=344 Man was I excited, since … Continue reading »

Json.Net – private setters

This post is a simple on explaining how you can make Json.Net handle private setters. I will show you three solutions but only one fullfills my requirements: – No attributes should be required – No fields should be serialized/deserialized only properties Sounds easy. Lets dig in. First of all a failing test: Assert.AreEqual failed. Expected:<Daniel>. … Continue reading »