diff --git a/app/modules/sjson.c b/app/modules/sjson.c index e5ed92f5..023a231e 100644 --- a/app/modules/sjson.c +++ b/app/modules/sjson.c @@ -765,6 +765,8 @@ static void encode_lua_object(lua_State *L, ENC_DATA *data, int argno, const cha } *d = '\0'; luaL_addstring(&b, value); + } else if (*str == '"') { + luaL_addstring(&b, "\\\""); } else { luaL_addchar(&b, *str); }