Newtonsoft.Json by James Newton-King

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

 JsonObjectAttribute

Instructs the JsonSerializer how to serialize the object.

Gets or sets how the object's properties with null values are handled during serialization and deserialization.

public Required ItemRequired { get; set; }

Gets or sets a value that indicates whether the object's properties are required.

Gets or sets the member serialization.

Initializes a new instance of the JsonObjectAttribute class.

public JsonObjectAttribute(MemberSerialization memberSerialization)

Initializes a new instance of the JsonObjectAttribute class with the specified member serialization.

public JsonObjectAttribute(string id)

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