Otter SDK Reference
Version:

ToJson(object obj) Method

Returns a JSON-format string of a serialized object.

Syntax

public static string ToJson(object obj)

Parameters

obj
Type: object

The object to serialize.

Returns

JSON-formatted string representation of the object.