<PackageReference Include="Newtonsoft.Json" Version="5.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 Type ItemConverterType { get; set; }

Gets 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 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.