C# Class NLog.Targets.DefaultJsonSerializer

Default class for serialization of values to JSON format.
Inheritance: IJsonSerializer
ファイルを表示 Open project: NLog/NLog Class Usage Examples

Public Methods

Method Description
SerializeObject ( object value ) : string

Returns a serialization of an object int JSON format.

Private Methods

Method Description
DefaultJsonSerializer ( ) : System
EscapeChar ( char c ) : string
EscapeString ( string str ) : string
SerializeObject ( object value, HashSet objectsInPath, int depth ) : string

Returns a serialization of an object int JSON format.

Method Details

SerializeObject() public method

Returns a serialization of an object int JSON format.
public SerializeObject ( object value ) : string
value object The object to serialize to JSON.
return string