Line 281:
Line 281:
end
end
−
function Utils.json(x, i)
+
function Utils.js(x, i)
i = i or 0
i = i or 0
local r = ""
local r = ""
Line 288:
Line 288:
for k, v in pairs(x) do
for k, v in pairs(x) do
if type(v) == "table" then
if type(v) == "table" then
−
r = r .. string.rep(" ", i + 1) .. showValue(k) .. ": " .. Utils.json(v, i + 1)
+
r = r .. string.rep(" ", i + 1) .. tostring(k) .. ": " .. Utils.json(v, i + 1)
else
else
−
r = r .. string.rep(" ", i + 1) .. showValue(k) .. ": " .. showValue(v) .. ",\n"
+
r = r .. string.rep(" ", i + 1) .. tostring(k) .. ": " .. showValue(v) .. ",\n"
end
end
end
end