Json.NET - Quick Starts & API Documentation
ToString Method (formatting, converters)
NamespacesNewtonsoft.Json.LinqJTokenToString(Formatting, array<JsonConverter>[]()[])
Returns the JSON for this token using the given formatting and converters.
Declaration Syntax
C#Visual BasicVisual C++
public string ToString(
	Formatting formatting,
	params JsonConverter[] converters
)
Public Function ToString ( _
	formatting As Formatting, _
	ParamArray converters As JsonConverter() _
) As String
public:
String^ ToString(
	Formatting formatting, 
	... array<JsonConverter^>^ converters
)
Parameters
formatting (Formatting)
Indicates how the output is formatted.
converters (array< JsonConverter >[]()[])
A collection of JsonConverter which will be used when writing the token.
Return Value
The JSON for this token using the given formatting and converters.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 3.5.0.0 (3.5.0.0)