Json.NET - Quick Starts & API Documentation
Serialize Method (textWriter, value)
Namespaces ► Newtonsoft.Json ► JsonSerializer ► Serialize(TextWriter, Object)
Serializes the specified Object and writes the Json structure
to a Stream using the specified TextWriter.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public void Serialize( TextWriter textWriter, Object value )
Public Sub Serialize ( _ textWriter As TextWriter, _ value As Object _ )
public: void Serialize( TextWriter^ textWriter, Object^ value )
Parameters
- textWriter (TextWriter)
- The TextWriter used to write the Json structure.