Skip to content

Commit 99d820d

Browse files
aktersnurraNTBBloodbath
authored andcommitted
refactor: remove luanil opts for vim.json.decode
1 parent 60428cc commit 99d820d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lua/rest-nvim/parser/init.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,7 @@ function parser.parse_body(children_nodes, variables)
338338
for node_type, node in pairs(children_nodes) do
339339
if node_type == "json_body" then
340340
local json_body_text = assert(get_node_text(node, 0))
341-
local json_body = vim.json.decode(json_body_text, {
342-
luanil = { object = true, array = true },
343-
})
341+
local json_body = vim.json.decode(json_body_text)
344342
body = traverse_body(json_body, variables)
345343
-- This is some metadata to be used later on
346344
body.__TYPE = "json"

0 commit comments

Comments
 (0)