Skip to main content

message.toJson

message.toJson()

message.toJson(generation)

Description

Returns the message content (of the generation if there is one) as a Json string.

Parameters

ParameterTypeExplanation
generationIntegerthe message generation

Example

http.post(url, message.toJson(-2))