Serializing dictionaries with JavaScriptSerializer
Although I agree that JavaScriptSerializer is a crap and Json.Net is a better option, there is a way in which you can make JavaScriptSerializer serialize the way you want to. You will have to register a converter and override the Serialize method using something like this: public class KeyValuePairJsonConverter : JavaScriptConverter { public override object … Read more