Module:GetJSON: Difference between revisions
From AlternateWiki
no edit summary
No edit summary |
No edit summary Tag: Reverted |
||
Line 17:
local value = root
for _, key in ipairs(keys) do
if
key = tonumber(key:sub(2))
if not key then
return nil
end
local dictKeys = {}
for dictKey in pairs(value) do
table.insert(dictKeys, dictKey)
end
table.sort(dictKeys)
key = dictKeys[key]
end
|