Click or drag to resize
Json.NET

JsonSerializerSerialize Method (TextWriter, Object)

 
Serializes the specified Object and writes the JSON structure using the specified TextWriter.

Namespace:  Newtonsoft.Json
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public void Serialize(
	TextWriter textWriter,
	Object value
)

Parameters

textWriter
Type: System.IOTextWriter
The TextWriter used to write the JSON structure.
value
Type: SystemObject
The Object to serialize.
See Also