I'm having problems finding a simple way to force the built-in DataContractSerializer to serialize dictionaries in a simple format:
[{key1: value1}, {key2: value2}]
Instead, they are serialized as [{"Key": key1, "Value": value1}, ..]
Swapping out the default serializer with JSON.NET looks complex but I can find no global settings to tweak on the WCF DataContractSerializer.
I'm looking for something similar to the Web API global settings where I can say:
WcfDataContractSerializerGlobals.UseSimpleDictionaryFormat = true
I'm using a WebServiceHost in a unit test environment but don't see a way to inject a customized serializer in there, either.