 | JsonConvertSerializeObject Method (Object, JsonConverter) |
Serializes the specified object to a JSON string using a collection of
JsonConverter.
Namespace:
Newtonsoft.Json
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntaxpublic static string SerializeObject(
Object value,
params JsonConverter[] converters
)
Parameters
- value
- Type: SystemObject
The object to serialize. - converters
- Type: Newtonsoft.JsonJsonConverter
A collection of converters used while serializing.
Return Value
Type:
StringA JSON string representation of the object.
See Also