Json.NET - Quick Starts & API Documentation
SerializeObject Method (value, converters)
Namespaces ► Newtonsoft.Json ► JsonConvert ► SerializeObject(Object, array<JsonConverter>[]()[][])
Serializes the specified object to a JSON string using a collection of JsonConverter.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static string SerializeObject( Object value, params JsonConverter[] converters )
Public Shared Function SerializeObject ( _ value As Object, _ ParamArray converters As JsonConverter() _ ) As String
public: static String^ SerializeObject( Object^ value, ... array<JsonConverter^>^ converters )
Parameters
- value (Object)
- The object to serialize.
- converters (array<JsonConverter>[]()[][])
- A collection converters used while serializing.
Return Value
A JSON string representation of the object.