[]
Serializes the specified object to a JSON string using JsonSetting.
public static string SerializeObject(object obj, JsonSetting js = null)
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)
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)
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. |