mirror of https://github.com/rxi/json.lua.git
Merge c2aad59ba6
into dbf4b2dd2e
commit
0b16a40e95
4
json.lua
4
json.lua
|
@ -90,7 +90,9 @@ local function encode_table(val, stack)
|
|||
if type(k) ~= "string" then
|
||||
error("invalid table: mixed or invalid key types")
|
||||
end
|
||||
table.insert(res, encode(k, stack) .. ":" .. encode(v, stack))
|
||||
if k ~= "_" then
|
||||
table.insert(res, encode(k, stack) .. ":" .. encode(v, stack))
|
||||
end
|
||||
end
|
||||
stack[val] = nil
|
||||
return "{" .. table.concat(res, ",") .. "}"
|
||||
|
|
Loading…
Reference in New Issue