This project has moved and is read-only. For the latest updates, please go here.


JsonSerializerInternalReader bypasses KeyValuePairConverter on dictionary deserialization


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 8: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.


LarsCorneliussen wrote May 25, 2012 at 1:46 PM

My fault. Just remove it again :-)

wrote May 27, 2012 at 8:55 AM

wrote Feb 22, 2013 at 2:48 AM

wrote May 16, 2013 at 1:37 PM