Enum TypeNameHandling
Specifies type name handling options for the JsonSerializer.
Namespace: Bayat.Json
Assembly: Bayat.Json.Runtime.dll
Syntax
[Flags]
public enum TypeNameHandling
Remarks
TypeNameHandling should be used with caution when your application deserializes JSON from an external source.
Incoming types should be validated with a custom System.Runtime.Serialization.SerializationBinder
when deserializing with a value other than TypeNameHandling.None
.
Fields
Name | Description |
---|---|
All | Always include the .NET type name when serializing. |
Arrays | Include the .NET type name when serializing into a JSON array structure. |
Auto | Include the .NET type name when the type of the object being serialized is not the same as its declared type. |
None | Do not include the .NET type name when serializing types. |
Objects | Include the .NET type name when serializing into a JSON object structure. |