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
|
return next(t) ~= nil or getmetatable(t) == objectMt
|
||||||
end
|
end
|
||||||
|
|
||||||
if debug and debug.upvalueid then
|
json.null = nil
|
||||||
-- Generate a lightuserdata
|
|
||||||
json.null = debug.upvalueid(json.createEmptyObject, 1)
|
|
||||||
else
|
|
||||||
json.null = function() end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- json.encode --
|
-- json.encode --
|
||||||
local statusVisited
|
local statusVisited
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue