Share via


SafeJsonConvert.SerializeObject Method

Definition

Overloads

SerializeObject(Object, JsonConverter[])
SerializeObject(Object, JsonSerializerSettings)

SerializeObject(Object, JsonConverter[])

public static string SerializeObject (object obj, params Newtonsoft.Json.JsonConverter[] converters);
static member SerializeObject : obj * Newtonsoft.Json.JsonConverter[] -> string
Public Shared Function SerializeObject (obj As Object, ParamArray converters As JsonConverter()) As String

Parameters

obj
Object
converters
Newtonsoft.Json.JsonConverter[]

Returns

Applies to

SerializeObject(Object, JsonSerializerSettings)

public static string SerializeObject (object obj, Newtonsoft.Json.JsonSerializerSettings settings);
static member SerializeObject : obj * Newtonsoft.Json.JsonSerializerSettings -> string
Public Shared Function SerializeObject (obj As Object, settings As JsonSerializerSettings) As String

Parameters

obj
Object
settings
Newtonsoft.Json.JsonSerializerSettings

Returns

Applies to