Click or drag to resize

IJsonSerializerSerializeObject Method

Convert an object to a JSON string

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
string SerializeObject(
	Object obj,
	bool pretty
)

Parameters

obj
Type: SystemObject
The object to convert
pretty
Type: SystemBoolean
Whether or not to use pretty printing

Return Value

Type: String
The JSON string
See Also