IJsonSerializer

Ecng.Serialization

Provides JSON serialization settings.

Свойства

BufferSize
public int BufferSize { get; set; }
value = iJsonSerializer.BufferSize
iJsonSerializer.BufferSize = value

Gets or sets the buffer size used during serialization and deserialization.

Encoding
public Encoding Encoding { get; set; }
value = iJsonSerializer.Encoding
iJsonSerializer.Encoding = value

Gets or sets the text encoding used for serialization.

EncryptedAsByteArray
public bool EncryptedAsByteArray { get; set; }
value = iJsonSerializer.EncryptedAsByteArray
iJsonSerializer.EncryptedAsByteArray = value

Gets or sets a value indicating whether encrypted values are handled as byte arrays.

EnumAsString
public bool EnumAsString { get; set; }
value = iJsonSerializer.EnumAsString
iJsonSerializer.EnumAsString = value

Gets or sets a value indicating whether enums should be serialized as strings.

FillMode
public bool FillMode { get; set; }
value = iJsonSerializer.FillMode
iJsonSerializer.FillMode = value

Gets or sets a value indicating whether the fill mode is enabled.

Indent
public bool Indent { get; set; }
value = iJsonSerializer.Indent
iJsonSerializer.Indent = value

Gets or sets a value indicating whether the JSON output should be indented.

NullValueHandling
public NullValueHandling NullValueHandling { get; set; }
value = iJsonSerializer.NullValueHandling
iJsonSerializer.NullValueHandling = value

Gets or sets the null value handling option for JSON serialization.

SecureStringEncryptor
public ISecureStringEncryptor SecureStringEncryptor { get; set; }
value = iJsonSerializer.SecureStringEncryptor
iJsonSerializer.SecureStringEncryptor = value

Gets or sets the local SecureString encryptor used by this serializer.