Serialize list with properties using .NET System.Text.Json
How can I let the JSON serializer ignore the enumeration of a class and serialize it as object and list its properties only? Here is an example of my problem: public class ObjectList<T> : IEnumerable<T> where T : class {…