Module:GetJSON: Difference between revisions

From AlternateWiki
325 bytes added ,  1 month ago
no edit summary
No edit summary
No edit summary
Tag: Reverted
Line 17:
local value = root
for _, key in ipairs(keys) do
if tonumber(key:sub(1, 1) == "#" then
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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.