Class JsonIgnoreEmptyCollectionAttribute
Indicates that a collection property should not be serialized if the collection is empty. Use AddJsonIgnoreEmptyCollection(JsonSerializerOptions) to register in JsonSerializerOptions.
[AttributeUsage(AttributeTargets.Property)]
public sealed class JsonIgnoreEmptyCollectionAttribute : Attribute
- Inheritance
-
JsonIgnoreEmptyCollectionAttribute
- Inherited Members