We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bee7ee3 + fd58f29 commit f049dafCopy full SHA for f049daf
json.lua
@@ -65,7 +65,7 @@ local function encode_table(val, stack)
65
66
stack[val] = true
67
68
- if val[1] ~= nil or next(val) == nil then
+ if rawget(val, 1) ~= nil or next(val) == nil then
69
-- Treat as array -- check keys are valid and it is not sparse
70
local n = 0
71
for k in pairs(val) do
0 commit comments