Click or drag to resize
JsonConvert.SerializeObject Method (Object, Formatting,JsonConverter[])
Serializes the specified object to a JSON string using a collection of JsonConverter.

Namespace: Newtonsoft.Json
Assembly: SimplSharpNewtonsoft (in SimplSharpNewtonsoft.dll)
Syntax
C#
public static string SerializeObject(
	Object value,
	Formatting formatting,
	params JsonConverter[] converters
)

Parameters

value
Type: System.Object
The object to serialize.
formatting
Type: Newtonsoft.Json.Formatting
Indicates how the output is formatted.
converters
Type:Newtonsoft.Json.JsonConverter[]
A collection converters used while serializing.

Return Value

Type: String
A JSON string representation of the object.
See Also