Closed VictorTomaili closed 8 years ago
I fix it via this resolver from stackowerflow. But i think its shouldn't be.
public class CamelCaseExceptDictionaryKeysResolver :
CamelCasePropertyNamesContractResolver
{
protected override JsonDictionaryContract CreateDictionaryContract(Type objectType)
{
JsonDictionaryContract contract = base.CreateDictionaryContract(objectType);
contract.DictionaryKeyResolver = propertyName => propertyName;
return contract;
}
}
Edit: Ok, i try to fix it from this library but i got same exception from hangfire.
I use case insensitive json settings for dictionaries and i set it on my owin startup
new KeyValuePairConverter()
And i have exception when click the details on dashboard. When dictionary deserialized, its contains lowercase keys and throw key not found exception.
I will think tommorrow someting. Good night.