| JTokenToString Method (Formatting, JsonConverter) |
Returns the JSON for this token using the given formatting and converters.
Namespace:
Newtonsoft.Json.Linq
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax public string ToString(
Formatting formatting,
params JsonConverter[] converters
)
Parameters
- formatting
- Type: Newtonsoft.JsonFormatting
Indicates how the output should be formatted. - converters
- Type: Newtonsoft.JsonJsonConverter
A collection of JsonConverters which will be used when writing the token.
Return Value
Type:
StringThe JSON for this token using the given formatting and converters.
See Also