C# Class Rock.Utility.RockJsonTextWriter

A JsonTextWriter that is aware of SerializeInSimpleMode AttributeCacheJsonConverter and AttributeValueJsonConverter use this to figure out how they should serialize
Inheritance: Newtonsoft.Json.JsonTextWriter
显示文件 Open project: NewSpring/Rock

Public Methods

Method Description
RockJsonTextWriter ( System textWriter, bool serializeInSimpleMode ) : System

Initializes a new instance of the RockJsonTextWriter class.

SerializeObjectInSimpleMode ( object value, Formatting formatting, JsonSerializerSettings jsonSettings ) : string

Serializes the object in simple mode.

Method Details

RockJsonTextWriter() public method

Initializes a new instance of the RockJsonTextWriter class.
public RockJsonTextWriter ( System textWriter, bool serializeInSimpleMode ) : System
textWriter System The text writer.
serializeInSimpleMode bool if set to true [serialize in simple mode].
return System

SerializeObjectInSimpleMode() public static method

Serializes the object in simple mode.
public static SerializeObjectInSimpleMode ( object value, Formatting formatting, JsonSerializerSettings jsonSettings ) : string
value object The value.
formatting Formatting The formatting.
jsonSettings Newtonsoft.Json.JsonSerializerSettings The json settings.
return string