by cameronh90 · 14y ago · 0 comments
Finally! For those who haven't used it, DataContractJsonSerializer has the most absurd way of serialising dictionaries into JSON. Rather than producing {"k1": "v1", "k2": "v2"} it produces [{"Key": "k1", "Value": "v1"}, {"Key":"k2", "Value": "v2"}]
DataContractJsonSerializer is a hack that is built on top of an XML parser.
For the people who are unfamiliar with .NET there is a comparison of Json.NET to Microsoft's two JSON serializers here:
http://json.codeplex.com/ <- Json.NET homepage