Module:GetJSON: Difference between revisions

From AlternateWiki
164 bytes added ,  1 month ago
no edit summary
No edit summary
No edit summary
Line 4:
m.root = mw.loadJsonData(frame.args[1])
if m.root[frame.args[2]] ~= nil then
if type(m.root[frame.args[2]]) == "table" then
local str = ""
for k,v in pairs(m.root[frame.args[2]]) do
str = str + v + ";"
end
return str
end
return m.root[frame.args[2]]
else
Cookies help us deliver our services. By using our services, you agree to our use of cookies.