Groovy (Low-code)SDK Functions (Groovy)MessageParsemessage.toJsonOn this pagemessage.toJson message.toJson() message.toJson(generation) Description Returns the message content (of the generation if there is one) as a Json string. Parameters ParameterTypeExplanationgenerationIntegerthe message generation Example http.post(url, message.toJson(-2))