We use
jsonFormatterSerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver()
globally in our webapi project but for one particular Dictionary property I want to override this. This is because the strings which represent the keys in the Dictionary are having their cases transformed and I want to return the original unmodified values. I tried this setting but it didn't work the keys were still camel case.
[JsonProperty(NamingStrategyType = typeof(DefaultNamingStrategy)]
public IDictionary<string, long?> Data { get; set; }