Module:Sandbox/Vestrian24Bio/JSON table 2 explained

require ('strict');

----------------------------< M A I N >----------------------------------------------------------------------

Function to convert JSON table to HTML table

local function main (frame) local jsonTable = mw.text.jsonDecode (frame.args[1]);-- local jsonTable = mw.text.jsonDecode (frame); local html = "

" .. tostring(key) .. "\n" html = html .. "
\n" html = html .. "\n" else html = html .. "" .. tostring(value) .. "\n" end html = html .. "\n" end end

generateRows(jsonTable) html = html .. "\n" return htmlend

----------------------------< E X P O R T S >----------------------------------------------------------------

return