Json.Net serialization of IEnumerable with TypeNameHandling=auto
问题 According to Json.Net documentation all IEnumerable types should be serialized as json array. So I expect the following class: public class MyClass { public IEnumerable<string> Values { get; set; } } to be serialized as: { "Values": [] } The problem is that when I use TypeNameHandling=Auto I get: { "Values": { "$type": "System.String[], mscorlib", "$values": [] } } I need TypeNameHandling=Auto for other properties but I expect IEnumerable to use the default serialization. Other types ( IList