1

Closed

JsonSerializerInternalReader bypasses KeyValuePairConverter on dictionary deserialization

description

When deserializing dictionaries, at least for the key, the converters are not consulted. Instead Convert.TryConvert is executed.
 
Using KeyValuePair<,>[] instead of dictionary lets JSON.NET use the KeyValuePairConverter which i would expect to be used also when deserializing IDictionary<,>
Closed May 27, 2012 at 7:55 AM by JamesNK
For performance reasons that converter isn't used when deserialized dictionaries. Create a dictionary converter if you want to override the way it works.

comments

LarsCorneliussen wrote May 25, 2012 at 12:46 PM

My fault. Just remove it again :-)