Table of Contents

Class JsonIgnoreEmptyCollectionAttribute

Namespace
Steeltoe.Common.Json
Assembly
Steeltoe.Common.dll

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