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

JsonArrayAttribute

Instructs the JsonSerializer how to serialize the collection.
public bool AllowNullItems { get; set; }

Gets or sets a value indicating whether null items are allowed in the collection.

Initializes a new instance of the JsonArrayAttribute class.

public JsonArrayAttribute(bool allowNullItems)

Initializes a new instance of the JsonObjectAttribute class with a flag indicating whether the array can contain null items

public JsonArrayAttribute(string id)

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