• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
no edit summary
Line 281: Line 281:  
end
 
end
   −
function Utils.json(x, i, nested)
+
function Utils.json(x, i)
 
     i = i or 0
 
     i = i or 0
 
     local r = ""
 
     local r = ""
 
     if type(x) == "table" then
 
     if type(x) == "table" then
         r = (nested and string.rep("  ", i) or "") .. "{\n"
+
         r = "{\n"
 
         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) .. tostring(k) .. ": " .. Utils.json(v, i + 1, true) .. ",\n"
+
                 r = r .. string.rep("  ", i + 1) .. tostring(k) .. ": " .. Utils.json(v, i + 1)
 
             else
 
             else
 
                 r = r .. string.rep("  ", i + 1) .. tostring(k) .. ": " .. showValue(v) .. ",\n"
 
                 r = r .. string.rep("  ", i + 1) .. tostring(k) .. ": " .. showValue(v) .. ",\n"
cssedit, gkautomate
7,064

edits

Navigation menu