Json.NET Documentation
Json.NET Documentation
API Reference
Newtonsoft.Json
JsonConvert Class
JsonConvert Methods
SerializeObject Method
SerializeObject Method (Object)
SerializeObject Method (Object, Formatting)
SerializeObject Method (Object, JsonConverter[])
SerializeObject Method (Object, JsonSerializerSettings)
SerializeObject Method (Object, Formatting, JsonConverter[])
SerializeObject Method (Object, Formatting, JsonSerializerSettings)
SerializeObject Method (Object, Type, JsonSerializerSettings)
SerializeObject Method (Object, Type, Formatting, JsonSerializerSettings)
JsonConvert
SerializeObject Method (Object, JsonSerializerSettings)
Serializes the specified object to a JSON string using
JsonSerializerSettings
.
Namespace:
Newtonsoft.Json
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
Copy
public
static
string
SerializeObject
(
Object
value
,
JsonSerializerSettings
settings
)
Parameters
value
Type:
System
Object
The object to serialize.
settings
Type:
Newtonsoft.Json
JsonSerializerSettings
The
JsonSerializerSettings
used to serialize the object. If this is
null
, default serialization settings will be used.
Return Value
Type:
String
A JSON string representation of the object.
See Also
Reference
JsonConvert Class
SerializeObject Overload
Newtonsoft.Json Namespace
Json.NET Home