How to disable TypeNameHandling when specified in attributes by using JsonSerializerSettings in Json.NET?
Sometimes I need to suppress output of "$type" properties by Json.NET even when specified by JsonPropertyAttribute.ItemTypeNameHandling . How can this be done? My root class looks like below: public class DomainResource { [JsonProperty(ItemTypeNameHandling = TypeNameHandling.Auto)] public List<Extension> Extensions { get; set; } } And in addition I have a class hierarchy for Extension such as the following: public class Extension { readonly string url; public string Url { get { return url; } } public Extension(string url) { this.url = url; } } public class IntegerExtension : Extension { public