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 »
Tagged with Json.Net …
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 »
MongoDB in C# – Extensions to support Json-mapping or Proxy generation
Note! This is an update to my previous post. For history and explanation of the consuming code see my previous post. I have made some quick changes to make the JSON API and the Proxy API that I wrote about in the earlier post, easier to use. I have put the code in an external … Continue reading »
Getting started with MongoDB – Using Json.Net and Castle Dynamic proxy
This post is divided in three blocks: – Getting MongoDB to run on your machine – Consume it manually via the MongoDB – Console – Consume it from C# code. Updates! See new post. Or how to do it, using Simple-MongoDB If you are just intereseted in the C# implementation, the section for how to … Continue reading »