[]
Serializes the specified object to a JSON string using JsonSetting.
public static string SerializeObject(object obj, JsonSetting js = null)
Public Shared Function SerializeObject(obj As Object, Optional js As JsonSetting = Nothing) As String
| Type | Name | Description |
|---|---|---|
| object | obj | The object to serialize. |
| JsonSetting | js | The JsonSetting used to serialize the object. If this is null, default serialization settings will be used. |
| Type | Description |
|---|---|
| string | A JSON string representation of the object. |
Serializes the specified object to a JSON string using a collection of JsonConverter.
public static string SerializeObject(object obj, IList<JsonConverter> jsCters)
Public Shared Function SerializeObject(obj As Object, jsCters As IList(Of JsonConverter)) As String
| Type | Name | Description |
|---|---|---|
| object | obj | The object to serialize. |
| IList<JsonConverter> | jsCters | A collection of JsonConverter |
| Type | Description |
|---|---|
| string | A JSON string representation of the object. |
Serializes the specified object to a JSON string using JsonResolver.
public static string SerializeObject(object obj, JsonResolver resolver)
Public Shared Function SerializeObject(obj As Object, resolver As JsonResolver) As String
| Type | Name | Description |
|---|---|---|
| object | obj | The object to serialize. |
| JsonResolver | resolver | The object of JsonResolver |
| Type | Description |
|---|---|
| string | A JSON string representation of the object. |