I do not like how the DataContractSerializer handles my Dictionary deserialization. My methods all return a Stream and I use the JavascriptDeserializer to return the JSON I want, but this does not help me with a Dictionary is one of the POST parameters.
The JavascriptSerializer handles Dictionary's like such:
{"myKey1":"myValue1", "myKey2":"myValue2"}
The DataContractSerializer does this:
[{"Key":"myKey1", "Value":"myValue1"}, {"Key":"myKey2", "Value":"myValue2"}]
The problem with this, is our Android and iPhone apps are puking generating the code natively and our AJAX calls are failing.
Any easy way to do this or a way to get around Microsoft's terrible Dictionary deserialization?