Json.NET - Quick Starts & API Documentation
ToString Method (formatting, converters)
Namespaces ► Newtonsoft.Json.Linq ► JToken ► ToString(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.