Skip to content

wezterm.json_encode(value)

Since: Version 20220807-113146-c2fee766

The functionality described in this section requires version 20220807-113146-c2fee766 of wezterm, or a more recent version.

Encodes the supplied lua value as json:

> wezterm.json_encode({foo = "bar"})
"{\"foo\":\"bar\"}"