From e47fd7713b083120af6cdb1548de8af513a0ec6f Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Fri, 19 Apr 2024 21:00:49 +0200 Subject: [PATCH] fix: Stringify all keys; Closes #1 --- lua/jsonfly/parsers.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/jsonfly/parsers.lua b/lua/jsonfly/parsers.lua index e0fd44f..ef775e5 100644 --- a/lua/jsonfly/parsers.lua +++ b/lua/jsonfly/parsers.lua @@ -54,7 +54,7 @@ function M:get_entries_from_lua_json(t) local raw_value = _raw_value ---@type Entry local entry = { - key = k, + key = tostring(k), value = get_contents_from_json_value(raw_value), position = { line_number = raw_value.line_number, @@ -151,7 +151,7 @@ function M:get_entries_from_lsp_symbols(symbols) ---@type Entry local entry = { - key = key, + key = tostring(key), value = M:parse_lsp_value(symbol), position = { line_number = symbol.range.start.line + 1,