Click or drag to resize
Json.NET

StringEscapeHandling Enumeration

 
Specifies how strings are escaped when writing JSON text.

Namespace:  Newtonsoft.Json
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public enum StringEscapeHandling
Members
  Member nameValueDescription
Default0 Only control characters (e.g. newline) are escaped.
EscapeNonAscii1 All non-ASCII and control characters (e.g. newline) are escaped.
EscapeHtml2 HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped.
See Also