SerializeObject Method (value, formatting, converters)

Json.NET

Json.NET - Quick Starts & API Documentation SerializeObject Method (value, formatting, converters)
NamespacesNewtonsoft.JsonJsonConvertSerializeObject(Object, Formatting, array<JsonConverter>[]()[][])
Serializes the specified object to a JSON string using a collection of JsonConverter.
Declaration Syntax
C# Visual Basic Visual C++
public static string SerializeObject(
	Object value,
	Formatting formatting,
	params JsonConverter[] converters
)
Public Shared Function SerializeObject ( _
	value As Object, _
	formatting As Formatting, _
	ParamArray converters As JsonConverter() _
) As String
public:
static String^ SerializeObject(
	Object^ value, 
	Formatting formatting, 
	... array<JsonConverter^>^ converters
)
Parameters
value (Object)
The object to serialize.
formatting (Formatting)
Indicates how the output is formatted.
converters (array<JsonConverter>[]()[][])
A collection converters used while serializing.
Return Value
A JSON string representation of the object.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.0.2.0 (4.0.2.13623)