mirror of
https://github.com/Myzel394/jsonfly.nvim.git
synced 2025-06-18 04:05:26 +02:00
fix: Stringify all keys; Closes #1
This commit is contained in:
parent
52d56f2e07
commit
e47fd7713b
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user