method JsonSerializer.prototype.serialize
Since 0.1.0
JsonSerializer.prototype.serialize<T>(value: T): string

Serializes a value to a JSON string.

Type Parameters

The payload type

Parameters

value: T

The value to serialize

Return Type

string

The JSON string

Usage

import { JsonSerializer } from "messaging-plugin/src/index.ts";