Click or drag to resize

JsonSerializeOptions Class

Options for JSON serialization
Inheritance Hierarchy
SystemObject
  NLog.TargetsJsonSerializeOptions

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public class JsonSerializeOptions

The JsonSerializeOptions type exposes the following members.

Constructors
  NameDescription
Public methodJsonSerializeOptions
Initializes a new instance of the JsonSerializeOptions class
Top
Properties
  NameDescription
Public propertyEnumAsInteger
Serialize enum as integer value.
Public propertyEscapeUnicode
Should non-ascii characters be encoded.
Public propertyMaxRecursionLimit
How far down the rabbit hole should the Json Serializer go with object-reflection before stopping
Public propertySanitizeDictionaryKeys
Should dictionary keys be sanitized. All characters must either be letters, numbers or underscore character (_). Any other characters will be converted to underscore character (_)
Public propertySuppressSpaces
Gets or sets the option to suppress the extra spaces in the output json.
Top
See Also