Click or drag to resize
Json.NETJsonConvertSerializeObject Method (Object, Formatting, JsonSerializerSettings)
 
Serializes the specified object to a JSON string using formatting and JsonSerializerSettings.

Namespace: Newtonsoft.Json
Assembly: Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 9.0.0.0 (9.0.1.19813)
Syntax
C#
public static string SerializeObject(
	Object value,
	Formatting formatting,
	JsonSerializerSettings settings
)

Parameters

value
Type: SystemObject
The object to serialize.
formatting
Type: Newtonsoft.JsonFormatting
Indicates how the output is formatted.
settings
Type: Newtonsoft.JsonJsonSerializerSettings
The JsonSerializerSettings used to serialize the object. If this is null, default serialization settings will be used.

Return Value

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