ToString Method (formatting, converters)

Json.NET

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 Basic Visual 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: 4.5.0.0 (4.5.6.14930)