Documentation for this module may be created at Module:Scott/sandbox/doc
local json = require('Module:Json')
local lootTable = json.decode(mw.getCurrentFrame():expandTemplate{title='Template:Items.json'})
local p = {}
p.getLootTable = function(frame)
local npc = frame.args[1]
for k in pairs(lootTable) do
table.insert(lootTable)
end
return lootTable[npc]
end
return p