# `wezterm.json_encode(value)` *Since: 20220807-113146-c2fee766* Encodes the supplied lua value as json: ``` > wezterm.json_encode({foo = "bar"}) "{\"foo\":\"bar\"}" ```