Serializes the specified object to a JSON string.

Namespace: Newtonsoft.Json
Assembly: Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 4.5.0.0 (4.5.11.15729)

Syntax

C#
public static string SerializeObject(
	Object value
)
Visual Basic
Public Shared Function SerializeObject ( _
	value As Object _
) As String
Visual C++
public:
static String^ SerializeObject(
	Object^ value
)

Parameters

value
Type: System..::..Object
The object to serialize.

Return Value

A JSON string representation of the object.

See Also