Module:GetJSON: Difference between revisions
From AlternateWiki
no edit summary
No edit summary |
No edit summary Tag: Reverted |
||
Line 7:
local m = {}
-- Load JSON data from the first argument passed to the module
m.root = mw.text.jsonDecode(frame.args[1])
else
m.root = mw.loadJsonData(frame.args[1])
end
-- Function to split a key string by "."
local function splitKey(key)
|