Otter SDK Reference
Version:

JsonEncode(string s) Method

Escapes characters necessary to encode the string in JSON format.

Syntax

public static string JsonEncode(string s)

Parameters

s
Type: string

String to encode.

Returns

Encoded string.