Skip to content

JSON

Inherits: LibTSMModule

Functions

Encode

lua
function Format.JSON.Encode(value)
  -> string

Encodes a value as a JSON string.

Parameters:

NameTypeDescription
valuestring | number | boolean | tableThe value to encode

Returns:

TypeDescription
string