mirror of https://github.com/folke/neoconf.nvim
fix(json): set `null` values to `nil`
This commit is contained in:
parent
2609dee882
commit
2f131d0e7d
|
|
@ -62,12 +62,7 @@ function json.isObject(t)
|
|||
return next(t) ~= nil or getmetatable(t) == objectMt
|
||||
end
|
||||
|
||||
if debug and debug.upvalueid then
|
||||
-- Generate a lightuserdata
|
||||
json.null = debug.upvalueid(json.createEmptyObject, 1)
|
||||
else
|
||||
json.null = function() end
|
||||
end
|
||||
json.null = nil
|
||||
|
||||
-- json.encode --
|
||||
local statusVisited
|
||||
|
|
|
|||
Loading…
Reference in New Issue