Json.NET - Quick Starts & API Documentation
MemberSerialization Enumeration
Namespaces ► Newtonsoft.Json ► MemberSerialization
Specifies the member serialization options for the JsonSerializer.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public enum MemberSerialization
Public Enumeration MemberSerialization
public enum class MemberSerialization
Members
Member | Description |
---|---|
OptOut |
All members are serialized by default. Members can be excluded using the JsonIgnoreAttribute.
|
OptIn |
Only members must be marked with the JsonPropertyAttribute are serialized.
|