JsonSerializeOptions Class |
Namespace: NLog.Targets
The JsonSerializeOptions type exposes the following members.
| Name | Description | |
|---|---|---|
| JsonSerializeOptions | Initializes a new instance of the JsonSerializeOptions class |
| Name | Description | |
|---|---|---|
| EnumAsInteger |
Serialize enum as integer value.
| |
| EscapeUnicode |
Should non-ascii characters be encoded.
| |
| MaxRecursionLimit |
How far down the rabbit hole should the Json Serializer go with object-reflection before stopping
| |
| SanitizeDictionaryKeys |
Should dictionary keys be sanitized. All characters must either be letters, numbers or underscore character (_).
Any other characters will be converted to underscore character (_)
| |
| SuppressSpaces |
Gets or sets the option to suppress the extra spaces in the output json.
|