Json.NET - Quick Starts & API Documentation
Required Enumeration
Namespaces ► Newtonsoft.Json ► Required
Indicating whether a property is required.

C# | Visual Basic | Visual C++ |
public enum Required
Public Enumeration Required
public enum class Required

Member | Description |
---|---|
Default |
The property is not required. The default state.
|
AllowNull |
The property must be defined in JSON but can be a null value.
|
Always |
The property must be defined in JSON and cannot be a null value.
|