<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />

JsonContainerAttribute

public abstract class JsonContainerAttribute : Attribute
Instructs the JsonSerializer how to serialize the object.
public string Description { get; set; }

Gets or sets the description.

public string Id { get; set; }

Gets or sets the id.

public bool IsReference { get; set; }

Gets or sets a value that indicates whether to preserve object references.

public object[] ItemConverterParameters { get; set; }

The parameter list to use when constructing the JsonConverter described by ItemConverterType. If null, the default constructor is used. When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number, order, and type of these parameters.

public Type ItemConverterType { get; set; }

Gets or sets the collection's items converter.

public bool ItemIsReference { get; set; }

Gets or sets a value that indicates whether to preserve collection's items references.

Gets or sets the reference loop handling used when serializing the collection's items.

Gets or sets the type name handling used when serializing the collection's items.

public object[] NamingStrategyParameters { get; set; }

The parameter list to use when constructing the NamingStrategy described by NamingStrategyType. If null, the default constructor is used. When non-null, there must be a constructor defined in the NamingStrategy that exactly matches the number, order, and type of these parameters.

public Type NamingStrategyType { get; set; }

Gets or sets the Type of the NamingStrategy.

public string Title { get; set; }

Gets or sets the title.

Initializes a new instance of the JsonContainerAttribute class.

protected JsonContainerAttribute(string id)

Initializes a new instance of the JsonContainerAttribute class with the specified container Id.